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

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

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