I have installed docker on ubuntu 14.04, it told me installed successfully. Then I entered sudo docker version
, it returned
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?
I entered sudo service docker status
, I got
docker start/running, process 8063
I tried sudo docker images
and sudo docker info
, I got the same reply:
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
I do not know why it returned this, I tried to pull ubuntu using sudo docker pull ubuntu
, and got
Using default tag: latest
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Please tell me how can I solve this problem, how can I pull and run docker image. And is docker -d
the same as docker deamon
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…