码迷,mamicode.com
首页 > 其他好文 > 详细

Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

时间:2018-08-24 18:09:39      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:tag   res   system   inf   ges   cap   running   connect   root   

此问题是因为Docker安装后未启动所致,执行以下命令启动docker:

systemctl start docker.service

具体日志如下:

技术分享图片

 

Connecting to 172.16.10.217:22...
Connection established.
To escape to local shell, press Ctrl+Alt+].

Last login: Fri Aug 24 17:35:46 2018
[root@localhost ~]# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[root@localhost ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
[root@localhost ~]# 

 以上显示已经成功启动。

Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

标签:tag   res   system   inf   ges   cap   running   connect   root   

原文地址:https://www.cnblogs.com/boonya/p/9531173.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!