Skip to content

[v0.12 backport] Permit '=' separator and '[ipv6]' in --add-host#2149

Closed
thaJeztah wants to merge 1 commit intodocker:v0.12from
thaJeztah:0.12_backportalign_add_host_with_cli
Closed

[v0.12 backport] Permit '=' separator and '[ipv6]' in --add-host#2149
thaJeztah wants to merge 1 commit intodocker:v0.12from
thaJeztah:0.12_backportalign_add_host_with_cli

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Dec 4, 2023

Make it easier to specify IPv6 addresses in the '--add-host' option by permitting 'host=ip' in addition to 'host:ip', and allowing square brackets around the address.

For example:

--add-host=hostname:127.0.0.1
--add-host=hostname:::1
--add-host=hostname=::1
--add-host=hostname=[::1]

(cherry picked from commit eeeff1c)

Fixes docker/cli#4648

Make it easier to specify IPv6 addresses in the '--add-host' option by
permitting 'host=ip' in addition to 'host:ip', and allowing square
brackets around the address.

For example:

    --add-host=hostname:127.0.0.1
    --add-host=hostname:::1
    --add-host=hostname=::1
    --add-host=hostname=[::1]

Signed-off-by: Rob Murray <[email protected]>
(cherry picked from commit eeeff1c)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the v0.12.1 milestone Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants