moby: Docker -p ip:hostPort:containerPort and ip::containerPort not compatible with IPv6 addresses
Docker --publish is not compatible with IPv6 if one wants to use he IP:host_port:container_port argument format. Even when address is provided in the well-known form of [IPv6] it does not work:
docker: Invalid format to parse. [2001:470:6267:324::c2]:53:53 should match template ip:hostPort:containerPort. See 'docker run --help'.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 6
- Comments: 17 (7 by maintainers)
Commits related to this issue
- Proof of concept: support IPv6 addresses in -p fixes issue #11518 Signed-off-by: Michael Stapelberg <stapelberg@google.com> — committed to stapelberg/docker by stapelberg 8 years ago
- portmapper: touch iptables only for IPv4 split out of https://github.com/docker/docker/pull/20315 in order to fix https://github.com/docker/docker/issues/11518 Signed-off-by: Michael Stapelberg <sta... — committed to stapelberg/libnetwork by stapelberg 8 years ago
- ParsePortSpec: handle IPv6 addresses split out of https://github.com/docker/docker/pull/20315 in order to fix https://github.com/docker/docker/issues/11518 Signed-off-by: Michael Stapelberg <stapelb... — committed to stapelberg/go-connections by stapelberg 8 years ago
- ParsePortSpec: handle IPv6 addresses split out of https://github.com/docker/docker/pull/20315 in order to fix https://github.com/docker/docker/issues/11518 Signed-off-by: Michael Stapelberg <stapelb... — committed to stapelberg/go-connections by stapelberg 8 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
- [testing] Use container address to talk to server running inside container. Docker does not have IPv6 port forwarding as tracked by the following issue: https://github.com/moby/moby/issues/11518 So ... — committed to google/gvisor by ayushr2 4 years ago
For those watching this issue, I’ve sent https://github.com/docker/docker/pull/20315 which contains a working implementation that addresses this issue. Not sure whether discussion is supposed to happen on the PR or here.
Still not working with 1.12.1, build 23cf638