[root@VM_0_10_centos ~]# docker --version
Docker version 1.13.1, build 07f3374/1.13.1
[root@VM_0_10_centos ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
4. 运行HelloWorld: docker run hello-world
[root@VM_0_10_centos ~]# docker run hello-world
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See '/usr/bin/docker-current run --help'.
## 5. 重新启动docker,解决“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”: service docker start
[root@VM_0_10_centos ~]# service docker start
Redirecting to /bin/systemctl start docker.service
5. 之后可以顺利运行hello-world
[root@VM_0_10_centos ~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
Trying to pull repository docker.io/library/hello-world ...
latest: Pulling from docker.io/library/hello-world
d1725b59e92d: Pull complete