Change the Default IP for the docker0 Bridge

  • 7018811
  • 18-Apr-2017
  • 28-Apr-2017

Environment

SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)

Situation

The Docker default IP range for the required docker0 bridge is 172.17.0.0/16 however that IP range is already in use.

Resolution

1. Edit the /etc/sysconfig/docker file and adjust the following line:

DOCKER_OPTS="--bip=192.168.1.1/24"

Replace the example IP range above with a IP range that best suits the local environment.

2. Reboot.

The docker0 network will now be updated to use the new IP range.

Cause

The default IP range for the docker0 network is 172.17.0.0/16.

Additional Information

Also see: https://docs.docker.com/engine/userguide/networking/default_network/custom-docker0/

Feedback service temporarily unavailable. For content questions or problems, please contact Support.