IPv6 docker: disable IPv4 in bridge docker0 and docker network

I want to make sure that I do not use a private network in docker bridge docker0 or in private docker networks. Therefore, for these interfaces I try to use only IPv6, but without disabling IPv4 on the host itself. (Which does not help the seams)

Is there a way for dockers to use IPv6 only on docker networks?

I am using docker 1.11.0

+6
source share
1 answer

On Linux hosts, enable IPv6 support by adding:

{ "ipv6": true } 

to the configuration of the Docker daemon ( /etc/docker/daemon.json ). After restarting the Docker daemon ( systemctl reload docker ) you can now create Docker networks with:

 docker network create --ipv6 my-ipv6-network 

I also found this documentation for Docker version 1.11: IPv6 with Docker . This seems affordable with Docker 1.8 .

0
source

All Articles