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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. CentOS / RHEL : How to create and host yum repository over httpd
  2. CentOS / RHEL : How to make iptable rules persist across reboots
  3. CentOS / RHEL 7 : How to configure cache-only nameserver
  4. How To Add Standard Linux Users To Manage Print Jobs And Services in CentOS/RHEL
  5. How to enable CUPS Debugging on CentOS/RHEL
  6. NFSv4 Client Shows “nobody” As Owner And Group For Mount Point (CentOS/RHEL)
  7. CentOS / RHEL : How To Check FC Brocade HBA Firmware
  8. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 6 to scan more than 512 LUNs
  9. SSH Login Stuck At : “debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP” CentOS/RHEL 7
  10. How to configure LDAP Client on CentOS/RHEL 6 using SSSD

You May Also Like

Primary Sidebar

Recent Posts

  • What are different Oracle Database Vault Roles
  • Unable to export realm protected table using data pump
  • Beginners Guide to Oracle Database Vault
  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary