IPV6 :: bound instead of V4 0.0.0.0 #47793
Labels
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/more-info-needed
status/0-triage
Description
I am on Debian 12.5.
I run
docker run 11f -p 0.0.0.0:8080:8080
, and see the proxy bind the following socket:I do not see this behavior when binding a socket with Python:
This causes a problem with the docker proxy's default interfaces, as the proxy tries to bind
0.0.0.0
(which is changed to::
) and then tries to bind::
, which fails because the first bind already includes it:Additionally, the
::
bind accepts connections from ipv4, which is unexpected since I havenet.ipv6.bindipv6only = 1
.Reproduce
Proxy a container's ports with `docker run -p 0.0.0.0:8080:8080 mycontainer
Expected behavior
When binding
0.0.0.0
, I don't expect::
to be bound, and vice versa. Additionally, I expect binding default interfaces to succeed.docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: