Docker Network configuration on Debian 8 and CentOS 7
My configuration is to run a full VM and then launch several containers on it.
Tha VM can be a CentOS or a Debian.
As of writing, current versions are Debian 8 and CentOS 7
Debian 8
You can decide what subnet you want the containers work in.Default is "172.17.0.0/16", and the "docker0" belongs to that range.
By setting up the "--bip" option in "/etc/default/docker" you can force "docker0" range:
DOCKER_OPTS=" --bip=172.17.250.1/24 "
CentOS 7
CentOS has a slightly different configuration layout.
By setting up the "--bip" option in "/etc/sysconfig/docker-network" you can force "docker0" range:
DOCKER_NETWORK_OPTIONS=" --bip=172.17.250.1/24 "