We are experimenting the docker development with ipv6 with Linked local address, but error occured when we restart the container.
Step to reproduce the error:
- As link local communication is needed, I overrided the /etc/docker/daemon.json file
{
"ipv6": true,
"fixed-cidr-v6": "fe80::1/64"
}
- Restart the docker service to apply the change
service docker restart
- Launch any docker container and kill it.
docker container run --detach nginx:latest
docker kill <container_id>
- Re-run the docker container
docker container run --detach nginx:latest
And it shows docker: Error response from daemon: Address already in use.
If we change the fixed-cidr-v6 field with another subnet range “2001:db8:1::/64”, the restart will work, however we cannot do the local communication that we want for experiment.
ip 6 route
::1 dev lo proto kernel metric 256 pref medium
fe80::/64 dev docker0 metric 1024 linkdown pref medium
docker version: 23.0.5