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 Assign Command Output to Variable in Shell Script
How to Disable Auto Logout in Linux
XARGS Command To Find & Delete Files
How to Use Linux History Command
How to Store Output of Cut Command in variable in Unix
How to Restore Default Repositories in Ubuntu
How to Set Timeout in cURL
How to Pass Parameters to Shell Script Function

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