How to uninstall docker on centos7

1. search and find out where you installed docker
[root@localhost ~]# yum list installed|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

2. Delete all the listed files
[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


 3.Delete docker image
[root@localhost ~]# rm -rf /var/lib/docker 

 
 4. check out  whether deleted or not
[root@localhost ~]# yum list installed|grep docker 
If you cannot find any lists like step 1, that's mean you successfully uninstall  docker.
 
1
Donate 21-09-18

0 comments

If you wanna get more accurate answers,Please Login or Register