Tuesday, March 24, 2020

How to change the Docker default bridge (docker0) network subnet?

You can configure the default bridge network by providing the bip option along with the desired subnet in the daemon.json (default location at /etc/docker/daemon.json on Linux) file as follows:
{
  "bip": "172.26.0.1/16"
}
Then restart the docker daemon:
sudo systemctl restart docker

Refer "https://docs.docker.com/network/bridge/" for more details.

No comments:

Post a Comment