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
Docker 20.10 RC1 breaks IPv6 routing #41699
Comments
@arkodg PTAL; possibly related to moby/libnetwork#2572 ? |
yes @thaJeztah its related to that PR, will take a look into this |
It seems that on some point the detection of the IPv6 address is not working correctly and we get a btw: Is there an easy way to get this RC installed to do some tests? |
I think the change in the portmapper/mapper.go is maybe the reason of this issue. Previously the port mapper was only used for IPv4 but is now also used for IPv6 which causes trouble if ip6tables support is disabled but a mapping for a IPv6 address is requested. In this case this is now simply executed with I will try to fix the port mapper so it is only using the right IP version. Will try to provide a PR shortly. |
it looks we might have been using the user land proxy earlier for this case and now it uses if we use the ipv6 container IP, then we could use |
With enabled Currently if I created a PR for the libnetwork that is maybe solving this issue: moby/libnetwork#2596 |
|
Regarding your 3. point I think this is not the issue. Based on the error message the host IP is cause the problem. The correct port mapper based on the container IP is selected in the So in this case the port mapper for IPv4 (with an IPv4 container IP |
Checked with a master build and think this is now fixed. Thanks! |
Thanks @chris-crone ! |
Reconfirming that this is fixed in 20.10.0-rc2 🎉 Thanks @bboehmke! |
Description
Prior to 20.10 RC1 (including beta1 and 19.03.x) the following Compose snippet would work:
It now fails with:
Steps to reproduce the issue:
docker-compose up
with Compose snippet above and a valid IPv6 address.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker-compose version
:Output of
docker info
:Docker daemon config
The text was updated successfully, but these errors were encountered: