【发布时间】:2016-03-31 23:28:05
【问题描述】:
我在 ubuntu 14.04 上安装了 docker,它告诉我安装成功。然后我输入sudo docker version,它返回了
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
我输入sudo service docker status,我得到了
docker start/running, process 8063
我试过sudo docker images和sudo docker info,得到了同样的回复:
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
不知道为什么返回这个,我尝试使用sudo docker pull ubuntu拉ubuntu,得到了
Using default tag: latest
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
请告诉我如何解决这个问题,如何拉取和运行 docker 镜像。 docker -d和docker deamon一样吗?
【问题讨论】: