March 2017
Beginner to intermediate
925 pages
18h 11m
English
As we know, when the Docker daemon starts, it creates a bridge called docker0 and all the containers would get the IP from it. Sometimes we might want to customize those settings. Let's see how we can do that in this recipe.
I am assuming you already have a Docker set up. On the Docker host, stop the Docker daemon. On Fedora, use the following command:
$ systemctl stop docker
docker0 bridge, use the following command:$ sudo ip link set dev docker0 down $ sudo brctl delbr docker0
$ sudo brctl addbr br0 $ sudo ip addr add 192.168.2.1/24 dev br0 $ sudo ip link set dev bridge0 up
Read now
Unlock full access