how to uninstall docker in ubuntu

How to Uninstall Docker in CentOS

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

Leave a Reply

Your email address will not be published. Required fields are marked *