SUSE Support

Here When You Need Us

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 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.

  • Document ID:7018811
  • Creation Date: 18-Apr-2017
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.