Centos7下解除安裝docker

振宇要低調發表於2015-11-10

  最近發現某臺機器上的Docker服務無法開啟,報如下錯誤:

[root@localhost ~]# docker ps -a
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
[root@localhost ~]# service docker restart
Redirecting to /bin/systemctl restart  docker.service
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.

沒找到對應的解決方法,只能進行重灌了。以下附上Centos7下解除安裝docker的命令:

[root@localhost ~]# yum list installed | grep docker
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
docker.x86_64                          1.7.1-108.el7.centos            @extras  
docker-selinux.x86_64                  1.7.1-108.el7.centos            @extras  
[root@localhost ~]# yum -y remove docker.x86_64
[root@localhost ~]# yum -y remove docker-selinux.x86_64

 

相關文章