在创建容器时报下列错误

[root@localhost sample]# docker build -t ovcer/nginx .
Sending build context to Docker daemon
2015/01/07 06:43:51 Post http:///var/run/docker.sock/v1.15/build?rm=1&t=ovcer%2Fnginx: dial unix /var/run/docker.sock: no such file or directory

 

解决方法:

[root@localhost sample]# systemctl start docker