Docker Community Forums

Share and learn in the Docker community.

Static IPv6 assignment issue


(Gbthousandeyes) #1


Multiple IPv6 Global IP’s are being assigned to my container, loosing connectivity.

In my current set up I have my custom docker network bridge (br0)

docker network create --ipv6 --driver=‘bridge’ --subnet=xxxx:xxxx:0:2::8d/64 --gateway=xxxx:c680:0:2::8d --aux-address=DefaultGatewayIPv6=xxxx:xxxx:0:2::1 br0

Then I run the container specifying that network and a static IPv4 and IPv6 address which are correctly assigned to the container.
But an extra Global IPv6 comes from nowhere, gets assigned to eth0 inside the container and I loose connectivity.

eth0 Link encap:Ethernet HWaddr 02:42:67:d6:93:8d
inet Bcast: Mask:
inet6 addr: xxxx:xxxx:0:2::8e/64 Scope:Global (The one I assigned)
inet6 addr: fe80::42:67ff:fed6:938d/64 Scope:Link
inet6 addr: xxxx:xxxx:0:2:42:67ff:fed6:938d/64 Scope:Global ( ???)

This second Global IPv6 makes me loose connectivity in the container and I can’t find a possible way to find where is it coming from.
(Manually deleting the IP works, but it’s a workaround - I need a solution)