Docker Community Forums

Share and learn in the Docker community.

Support for IPv6 bridges services on DockerCloud nodes


(Levjj) #1

My node provider supports IPv6, so I would like to offer services under a public IPv6 address. Right now, this works fine for containers with a network = host setting but this prevents links to other containers. Ideally, IPv6 also works for containers with a network = bridge setting.

While investigating, it seems to me that the node (which has been automatically provisioned by DockerCloud with Ubuntu 14.04LTS) did not manage its firewall correctly. For IPv4, all the exposed ports and forwarded links are correctly configures. However, this configuration is missing for IPv6. I was succesfully able to enable IPv6 connectivity for exposed ports of containers but this configuration depends on the deployed containers, so it can change over time and should be handled by DockerCloud.

Steps to reproduce:

  • Create a node (e.g. on DigitalOcean) with DockerCloud
  • Enable IPv6 for that node and obtain the public address
  • Host a container with network = host setting and an exposed port
  • The service is reachable by its public IPv6 address
  • Host a container with network = bridge setting and an exposed port
  • The service is not reachable due to a broken ip6tables configuration on the node