User-defined bridge networks provide better isolation and enable advanced networking features like service discovery.
docker network create my-custom-network
docker run -d --name container1 --network my-custom-network my-image docker run -d --name container2 --network my-custom-network my-image
To skip IPv4 address configuration on the bridge and in its containers, create the network with option –ipv4=false, and enable IPv6 using –ipv6.
docker network create --ipv6 --ipv4=false v6net
NOTE: IPv4 address configuration cannot be disabled in the default bridge network.