You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When assigning an IPv6 Link-Local address to a container it uncovered an issue. When specifying a Link-Local --ipv6=, the allocation from the default IPAM driver works fine the first time, but when you exit the endpoint the ipv6 release for the endpoint does not occur. When you go to start the same container config again it will throw an error with docker: Error response from daemon: Address already in use.
While assigning a Link-Local is questionable from a practical standpoint, I think it makes sense to either A) block it from creation or B) Don't perform v6 categorical type checks outside of is it 64-bit etc.
On the error returned it might be worth considering adding more information to address in use errors with the ability to set an IP addr --ip=x.x.x.x as of v1.10. In the err msg of Address already in use. specifying the address that is already in use could make it a bit easier to track down when it comes to dual stack v4/v6 and multi-subnet v4 and/or v6 e.g. Address %s already in use.
The error does not occur with the -d bridge driver since it uses a bit different of v6 support to support backwards compatable bridge use cases.
Build Details
Ver: Docker version 1.11.0-dev, build 921c744-unsupported, experimental
docker run -it --net=macnet --ip6=fe96::10 --rm alpine /bin/sh
docker: Error response from daemon: Address already in use.
Daemon Debug logs:
DEBU[0888] Assigning addresses for endpoint boring_hypatia's interface on network macnet
DEBU[0888] RequestAddress(LocalDefault/192.168.123.0/24, <nil>, map[])
DEBU[0888] RequestAddress(LocalDefault/fe96::/64, fe96::10, map[])
WARN[0888] failed to cleanup ipc mounts:
...
(trunc)
...
ERRO[0888] Handler for POST /v1.22/containers/51e020f96de4ab2ee7b9a995577f0550a81fbda36eb659306a6d0c0f166e9b45/start returned error: Address already in use
The text was updated successfully, but these errors were encountered:
Issue Description
--ipv6=
, the allocation from the default IPAM driver works fine the first time, but when you exit the endpoint the ipv6 release for the endpoint does not occur. When you go to start the same container config again it will throw an error withdocker: Error response from daemon: Address already in use
.--ip=x.x.x.x
as of v1.10. In the err msg ofAddress already in use.
specifying the address that is already in use could make it a bit easier to track down when it comes to dual stack v4/v6 and multi-subnet v4 and/or v6 e.g.Address %s already in use.
-d bridge
driver since it uses a bit different of v6 support to support backwards compatable bridge use cases.Build Details
Docker version 1.11.0-dev, build 921c744-unsupported, experimental
Steps to reproduce - Create a Dual Stack v4/v6 Network (Also the same results with v6 only etc.)
Start container # 1 and then exit
--ip6
address:Recreate container # 1
The text was updated successfully, but these errors were encountered: