Docker Community Forums

Share and learn in the Docker community.

Docker0 bridge override

docker

(Noel) #1

I have added the following to my install script to change the docker0 network as it conflicts with my companies network

service docker stop
ip link del docker0
echo 'DOCKER_OPTS="-bip 10.0.0.1/24"' >> /etc/default/docker
service docker start

However it does not seem to work. When I do docker network inspect “the bridge network id” it shows
> “Subnet”: “172.17.0.0/16”,
> “Gateway”: "172.17.0.1"
in the config section.
I have done cat on the /etc/default/docker file and it is present

DOCKER_OPTS="-bip 10.0.0.1/24"

I have little network experience, please help in pointing me to what i am doing wrong