iQCloud - How to change the IP Address of the Docker Interface

In some environments the default address used by the docker0 interface may conflict with the network infrastructure - the docker0 address can be customized by modifying the docker config file as detailed below.

Instructions

  1. Modify or create the daemon.json file - sudo nano /etc/docker/daemon.json

  2. Add or modify the following information to match your desired network:
    { "bip": "172.26.0.1/16" }

  3. Press CTRL+X to exit the file making sure to select Y to save the file

  4. Restart the docker services by running sudo systemctl restart docker

  5. Run ifconfig docker0 to verify your changes have taken effect.

 Source: https://success.docker.com/article/how-do-i-configure-the-default-bridge-docker0-network-for-docker-engine-to-a-different-subnet