Docker Community Forums

Share and learn in the Docker community.

Docker-Engine bip and default-address-pools configurations

Hi all.

My docker host is part of a network of 192.168.10.X servers

Currently my /etc/docker/daemon.json file is:

{
"bip": "192.168.10.10/24",
"default-address-pools":[
{"base":"192.168.15.0/22","size":22}
]
}

But this configuration is not good.

I’m thinking about creating 02 subnets

server’s subnet:
Range: 192.168.10.1 ~ 192.168.10.63

container’s subnet:
Range: 192.168.10.64 ~ 192.168.10.254

What configuration should I expose in the daemon.json file so that I get:

docker0 running on 192.168.10.10
subnet range 192.168.10.64~254
Gateway 192.168.10.10

Can anyone help me with this ?

TIA