• 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 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. “git ls-tree” Command Examples
  2. RHEL 7 – RHCSA Notes – vi/vim editor
  3. ajson – Executes JSONPath on JSON objects (Command Examples)
  4. qrcp Command Examples in Linux
  5. Grsync: Graphical rsync backup tool in Ubuntu Linux
  6. flashrom: command not found
  7. How to Transfer a File In Passive Mode by FTP
  8. Endpoint is not Created for Service in Kubernetes
  9. How to enable NFS debug logging using rpcdebug
  10. CentOS/RHEL: How to find the package with a missing file using YUM

You May Also Like

Primary Sidebar

Recent Posts

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

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright