Docker Community Forums

Share and learn in the Docker community.

Can't get IPv6 to work with Docker on Amazon EC2


(Amjad4) #1

Hi,

I want to run multiple containers that should have egress access to IPv6 websites. Docker requires specifying an IPv6 subnet of /64 size in order to use IPv6. However, Amazon doesn’t allow you to assign an entire subnet to an instance. At most, you can assign only a few IPs to an instance, the limit varies based on the instance type.

Using the host network let’s me use ping6 and curl -6 from within the container, but the subsequent containers beyond the first one fail to start due to some error with xvfb. (I’m using a docker image based on docker-selenium

What is the best way to use IPv6 with docker in production, when you have limited IPs (say 2). I tried docker-ipv6nat, but I’m not able to get it to work either.

I have also created an issue on the moby GitHub repo, with more details in case you need to refer.

Any help would be appreciated.


(Amjad4) #2

Bump. Can use some help here.