-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect IPV6 prefix address assigned to container interface #931
Comments
looks like a bug in libnetwork IPAM https://github.com/docker/libnetwork/blob/b3e2ea384c8d7a0bdcb7d5243aa92e311db886ca/ipam/allocator.go#L565 for large subnets |
I'd say it is caused by Due to this limitation Docker effectively hands containers network address of subnet + last 64 bits from It is quite a bug! Unfortunately I was hit by it, too. Examples: network: network: |
For now I am using custom IPAM driver to work around the issue: |
I have created a
macvlan
network with the followingThen create a docker container with
When I run
ifconfig
in the container I getThe
inet6
address does not have the correct prefixWas expecting
xxxx:xxxx:200:0400:0135:7700:ef0a:1
but received
xxxx:xxxx:200:0:135:7700:ef0a:1
daemon.config is
Docker version
Docker info
Thanks in advance...
The text was updated successfully, but these errors were encountered: