Docker Community Forums

Share and learn in the Docker community.

Custom default network settings for each new container

docker

(Sprich2) #1

After configuring a custom fixed-cidr range in daemon.json and restarting the daemon I see the docker0 bridge has the new network settings. Also docker network inspect bridge shows these settings.

But when I start a new container it still gets the default 172.17 network.

How do I tell the docker daemon to use the configured network for all newly created container by default?

Can I configure this network somewhere else? Network driver bridge? How to do that?

I know that a container can be configured with a custom network, this is not what I need. I need a default behaviour for all containers created on a host.

Thank you.