Docker is a popular application container used by many websites & organizations around the world. However, sometimes you may need to uninstall Docker, in case of issues. Here are the steps to uninstall Docker in CentOS.
How to Uninstall Docker in CentOS
Here are the steps to uninstall Docker in CentOS.
1. Remove Docker
Open terminal and run the following command to uninstall docker.
# yum remove docker-ce
If the above command gives permission errors, then use sudo keyword at the beginning of the above command.
2. Remove Docker Files
Please note, the above command will only remove docker application and binaries but not images, containers, volumes or configuration files from your system. To delete Docker containers, images & volumes run the following command.
# rm -rf /var/lib/docker
That’s it. As you can see, it is very easy to uninstall Docker and remove its configuration files & data.
Also read:
How to Uninstall Asterisk in Ubuntu
JSON.dump vs JSON.dumps in Python
How to Uninstall Docker in Ubuntu
How to Become Root User in Linux
How to Change Default Home Directory in Linux
Related posts:
How to Insert Text At Certain Line in Linux
How to Run Linux Commands Without Logging in History
How to Convert Image to Pdf in Linux
How to Fix Permission Denied Error While Using Cat Command
How to Setup 2 Factor Authentication for SSH in Linux
How to Use SCP with PEM File (SSH Key)
How to Use NMAP in Kali Linux
How to Delete Multiple Directories in Linux

Sreeram has more than 10 years of experience in web development, Python, Linux, SQL and database programming.