Follow

How to Change the Docker Bridge IP Address to Prevent Conflicts

Applies To

  • Zenoss 5.x

Summary

If the default Docker Bridge IP address causes issues due to duplicate network addressing, the administrator can change the address. This article describes how to change the Docker Bridge IP Address.

Procedure

  1. Log into the host machine as root.
  2. Use a text editor to create a new file named ifcfg-bridge0.
  3. Place the new file in the /etc/sysconfig/network-scripts/ directory .
  4. Add the following information to the file, exchanging the red values for the new Docker Bridge IP address information appropriate for the network:
    DEVICE=docker0
    TYPE=Bridge
    BOOTPROTO=static
    DNS1=192.168.5.1
    GATEWAY=192.168.5.1
    IPADDR=192.168.5.1
    NETMASK=255.255.255.0
    ONBOOT=yes
    

    NOTE: Ensure the new information does not conflict with other addresses on your network.

  5. Save and exit the file.
  6. Exit the text editor.
  7. Shutdown resmgr (Resource Manager):
    serviced service stop resmgr
  8. Shutdown serviced (Control Center):
    systemctl stop serviced
  9. shutdown docker:
    systemctl stop docker
  10. Reboot the system
  11. If necessary, restart docker, serviced and Resource Manager.
Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk