Centos7下卸載docker

  最近發現某臺機器上的Docker服務沒法開啓,報以下錯誤:linux

[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的命令: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
相關文章
相關標籤/搜索