Modify Docker Default Bridge Address

A colleague from the school studio reported that after using Docker, its default 172 bridge address conflicted with a subnet in one of the dorm buildings, preventing students in that area from accessing Docker applications properly. After going through the official documentation, I found a way to modify the default bridge address. First, stop the Docker service: $ sudo service docker stop Next, delete Docker’s default bridge docker0: $ sudo ip link set dev docker0 down $ sudo brctl delbr docker0 $ sudo iptables -t nat -F POSTROUTING ...

Jun 1, 2016