How to configure the Docker bridge IP range on RancherOS v1.5
This document (000020215) is provided subject to the disclaimer at the end of this document.
Situation
Task
In RancherOS v1.5.x the docker0
bridge network has a default IP range of 172.17.0.0/16
and the docker-sys
bridge for system-docker has a default range of 172.18.0.0/16
. This article details how to update these ranges.
Pre-requisites
- A RancherOS v1.5.x host
Resolution
The docker0
bridge range is set by the rancher.docker.bip
argument, whilst the docker-sys
bridge is set by rancher.system_docker.bip
argument.
These can be configured in the cloud-config as follows:
rancher:
docker:
bip: 192.168.0.0/16
system_docker:
bip: 172.19.0.0/16
These can also be customized after the host has started with the ros config
command, and will take effect after a reboot:
ros config set rancher.docker.bip 192.168.0.0/16
ros config set rancher.system_docker.bip 172.19.0.0/16
Further reading
You can read more on configuring Docker or System Docker within the RancherOS documentation.
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:000020215
- Creation Date: 06-May-2021
- Modified Date:06-May-2021
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com