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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable Docker Process and docker0 Interface on CentOS/RHEL

by admin

When the docker packages are installed, the services and related docker0 network interface are enabled. In some cases, you may want to disable the docker service and the docker0 network interface as well.

This post details how to disable Docker and the docker0 interface if it is not required or if the docker0 interface is conflicting with other network interfaces/routes.

1. Ensure the Docker service is stopped:

# service docker stop      # for CentOS/RHEL 6
# systemctl stop docker    # for CentOS/RHEL 7

2. Remove the interface for Docker:

# ip link delete docker0

3. Remove the Docker service from the list of services started at boot:

# chkconfig --del docker          # for CentOS/RHEL 6
# systemctl disable docker        # for CentOS/RHEL 7

4. Optionally, you can reboot the node to ensure all services are cleared and the interface is not configured/up.

# shutdown -r now

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

Some more articles you might also be interested in …

  1. dirb Command Examples in Linux
  2. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  3. kvm-img: command not found
  4. vgextend Command Examples in Linux
  5. gnome-calculator Command Examples in Linux
  6. Archiving Failures with ORA-16038, ORA-19504, ORA-00312
  7. CentOS / RHEL 7 : How to Install GUI
  8. perf: command not found
  9. alias Command Examples in Linux
  10. ipcrm Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright