Changing the private docker subnet
The docker default is to use 172.17.0.0/16.
Here is how to change this if you need to.
- stop all containers
- stop the docker daemon
- vim /etc/sysconfig/docker, set:
other_args="--bip=10.24.25.1/24"
- ip link set dev docker0 down
- brctl delbr docker0
- iptables -t nat -F
- start the docker daemon
start containers back up