Docker Error with - Cannot connect to the docker daemon, not running ?

Error

Cannot connect to the Docker daemon at tcp://0.0.0.0:2736. Is the docker daemon running?

ENV

  • 系统: ubuntu 16.04,

  • Docker :

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:42:18 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:56 2017
 OS/Arch:      linux/amd64
 Experimental: false

当我重启我的计算机系统是, 运行 docker info 出现错误如下:

$ docker info

// error
Cannot connect to the Docker daemon at tcp://0.0.0.0:2736. Is the docker daemon running?

重启 docker service

$ sudo systemctl restart docker.service


// error
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

我的用户是 root 用户,我也尝试了网上说的各种方法:vpn,dns等,还有说更改 /etc/systemd/system/docker... 文件,但是我的根本就没有这个文件;甚至我重新安装了 docker , 但是结果都是 。。。。呵呵。。

最好我是怎么样解决这个问题的呢,还要感谢 大神 啊!

具体操作方法如下:

Wipe out /var/lib/docker and restart.

* note *: if you do this, will destroy all your existing containers,images!

$ sudo rm -r /var/lib/docker

$ sudo systemctl stop docker
$ sudo systemctl stast docker

希望能被需要的小盆友看到!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章