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:
/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
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.