在Ubuntu 12.04上安装Docker - >无法连接到守护进程

时间:2015-04-02 15:30:55

标签: installation docker ubuntu-12.04

我尝试按照官方文档在ubuntu 12.04系统上安装docker https://docs.docker.com/installation/ubuntulinux/#for-precise-1204-lts(包括重新启动)和此处 https://docs.docker.com/installation/ubuntulinux/#installing-docker-on-ubuntu

不幸的是,这最终得到了FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

$ docker info
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

$ docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
FATA[0000] open /var/lib/docker/aufs/layers/df72a4d378d4e5fc20dfba9c3356f94de84278a9864e838160ae2c1e3a6c4991: no such file or directory

不幸的是,我无法在网上找到任何类似的案例而且没有先进的经验,所以我将不胜感激:)

解决了结果我只需要删除layers目录。 :/

0 个答案:

没有答案