Docker Community Forums

Share and learn in the Docker community.

Cannot ping docker bridge network on ubuntu aws over ipv6 Amazon VPC

build

(Jwausle) #1

I have trouble with docker ipv6 setup on aws.

(1) I followed this instructions https://docs.aws.amazon.com/de_de/AmazonVPC/latest/UserGuide/get-started-ipv6.html
(2) Connect aws ubuntu-16.04 (successful ping6 XXXX:XXXX:XXXX:XXXX:YYYY:YYYY:YYYY:YYYY)
(3) Run docker

$ docker network create --ipv6 --subnet XXXX:XXXX:XXXX:XXXX:4000::/80 web
$ docker run --rm --net web --ip6 XXXX:XXXX:XXXX:XXXX:4000::2 -d -p 80:80 nginx

(4) Check from outside

ping6 XXXX:XXXX:XXXX:XXXX:YYYY:YYYY:YYYY:YYYY # successful
curl [XXXX:XXXX:XXXX:XXXX:YYYY:YYYY:YYYY:YYYY] # successful

ping6 XXXX:XXXX:XXXX:XXXX:4000::2 # failed
curl [XXXX:XXXX:XXXX:XXXX:4000::2] # failed 

HINT aws ubuntu-16.04 routing

$ ip -6 r
XXXX:XXXX:XXXX:XXXX:YYYY:YYYY:YYYY:YYYY dev eth0  proto kernel  metric 256  pref medium
XXXX:XXXX:XXXX:XXXX:4000::/80 dev br-6ee7a4ad07a3  proto kernel  metric 256  pref medium
XXXX:XXXX:XXXX:XXXX:4000::/80 dev br-6ee7a4ad07a3  metric 1024  pref medium
XXXX:XXXX:XXXX:XXXX::/64 dev eth0  proto kernel  metric 256  pref medium
fe80::/64 dev eth0  proto kernel  metric 256  mtu 9001 pref medium
fe80::/64 dev br-6ee7a4ad07a3  proto kernel  metric 256  pref medium
fe80::/64 dev veth6151797  proto kernel  metric 256  pref medium
default via fe80::492:c0ff:fe61:91b8 dev eth0  proto ra  metric 1024  expires 1793sec hoplimit 64 pref medium

Any ideas?