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 Install RPM Package in Redhat, CentOS
How to Kill Unresponsive Process in Linux
How To Run Multiple cURL Requests in Parallel
How to Suspend Process in Linux
How to Rename Downloaded File in Wget
How to Overwrite Input File in Awk
How to Schedule Reboot in Linux
How to Create Swap Space in Ubuntu/Debian

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