Enable IPv6 on docker
Docker IPv6 support
Our non-public infrastructure is (mostly) IPv6 only. Therefore, we need outgoing* IPv6 support on our Docker based Gitlab runners. Complete IPv6 support is out of scope of this snippet – a more complete answer may be found on Docker IPV6 Guide.
Simply follow these steps:
Enable IPv6
Edit /etc/docker/daemon.json
on the Docker host
and restart the daemon, e.g.
Enable outgoing traffic using NAT
Test outgoing traffic from a Docker guest
Make changes permanent
This obviously depends on your distribution. For Debian/Ubuntu based distributions, we edit
/etc/systemd/system/multi-user.target.wants/docker.service
:
For this to test, you need to reboot your system.
* IP always needs to work in both directions. "Outgoing" means our Docker guests contact IPv6 only servers, but are not accessible via IPv6.
tom
DOCKER
docker gitlab