Docker Community Forums

Share and learn in the Docker community.

Problems to change the IPS range of docker subnet

On the development server of the company where I work, IPS priority problems sometimes occur between developers and the docker subnet. To solve this, I modified the daemon.js so that it only used a subnet 172 and the code of the file looked like this:

{
“default-address-pools”:
[
{“base”:“172.168.1.0/24”,“size”:24}
]

“bip”: “172.168.0.1./24”,
“fixed-cidr”: “172.18.0.0/16”,
}

But still, the docker uses these IPS here:

Every time I make a change I restart the docker service, as recommended in the documentation, but it still keeps getting those IPS that are marked in the photo above. So if anyone can help me I would be extremely grateful. The server tha I’m runnig the tests to implement later on the production server, if I finnaly get to resolve this issue, is Centos 7.