7018811: Change the Default IP for the docker0 Bridge

This document (7018811) is provided subject to the disclaimer at the end of this document.

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/

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented “AS IS” WITHOUT WARRANTY OF ANY KIND.

Related:

Leave a Reply