• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to change the default IP address of docker bridge

by admin

Question: what is the proper procedure to reconfigure the docker interface to use an address range (e.g., > 172.200) for the virtual interfaces it uses?

You can reconfigure the default bridge network by providing the bip option along with the desired subnet in the daemon.json (default location at /etc/docker/daemon.json ) file as follows:

# vi //cdn.thegeekdiary.com/etc/docker/daemon.json
{
  "bip": "172.200.0.1/16"
}

Then restart the docker daemon as root.

On CentOS/RHEL 6 use the service command to restart the docker service:

# service docker restart

On CentOS/RHEL 7, use the systemctl command to restart the docker service.

# systemctl restart docker

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, DevOps, Docker, Linux

Some more articles you might also be interested in …

  1. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  2. mkinitcpio: command not found
  3. links: command not found
  4. What are makefiles in Linux
  5. distccd: Server daemon for the distcc distributed compiler
  6. CentOS / RHEL 6,7 : How to increase system log message verbosity (rsyslogd)
  7. getsebool: command not found
  8. etcdctl: CLI interface for interacting with etcd, a highly-available key-value pair store
  9. doctl serverless: Manage serverless functions
  10. pwdx Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright