Home > Operation and Maintenance > CentOS > How to uninstall docker on centos

How to uninstall docker on centos

王林
Release: 2020-05-17 09:38:46
Original
9293 people have browsed it

How to uninstall docker on centos

First search for the installed docker installation package

[root@localhost ~]# yum list installed|grep docker
Copy after login

or use the following command

[root@localhost ~]# rpm -qa|grep docker 
docker.x86_64 2:1.12.6-16.el7.centos @extras 
docker-client.x86_64 2:1.12.6-16.el7.centos @extras 
docker-common.x86_64 2:1.12.6-16.el7.centos @extra
Copy after login

and then delete the installation package respectively

[root@localhost ~]#yum –y remove docker.x86_64 
[root@localhost ~]#yum –y remove docker-client.x86_64 
[root@localhost ~]#yum –y remove docker-common.x86_64
Copy after login

Then delete the docker image

[root@localhost ~]# rm -rf /var/lib/docker
Copy after login

Then check docker again to see if it has been successfully uninstalled.

[root@localhost ~]# rm -rf /var/lib/docker 
[root@localhost ~]#
Copy after login

If it is not found, it means that it has been successfully uninstalled.

Recommended tutorial: centos tutorial

The above is the detailed content of How to uninstall docker on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template