docker运行时提示:
Get http:///var/run/docker.sock/v1.15/images/json: dial unix /var/run/docker.sock: no such file or directory
说明docker服务没有启动,可以用run命令确认一下:
[root@localhost cos]# docker run aaa
2018/10/11 11:43:41 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
解决方法,启动服务即可:
[root@localhost cos]# service docker start
Redirecting to /bin/systemctl start docker.service
(docker -d 也可以)
本文介绍了一种常见情况,即在尝试运行Docker容器时遇到服务未启动的问题。通过检查Docker守护进程状态,使用特定命令启动Docker服务,可以有效解决此问题,确保Docker容器能够正常运行。
1362

被折叠的 条评论
为什么被折叠?



