首页 > 代码库 > 创建Docker容器时报dial unix /var/run/docker.sock: no such file or directory

创建Docker容器时报dial unix /var/run/docker.sock: no such file or directory

在创建容器时报下列错误

[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

 

 

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1599983

创建Docker容器时报dial unix /var/run/docker.sock: no such file or directory