docker中“Cannot connect to the Docker daemon at .............Is the Docker daemon running?” 解决办法
·
#1、在docker拉取镜像后启动不起来
“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the Docker daemon running?”

此错误的原因包括:
(1)The Docker daemon is not running. Docker守护程序未运行
(2)Docker doesn’t shutdown cleanly. Docker无法完全关闭。
(3)Lack of root privileges to start the docker service. 缺少启动docker服务的root权限。
解决方案:
方法一:查看 /var/run/docker.dock 文件是否变成目录,如果是就删除该目
rm -rf /var/run/docker.sock/
然后重启docker
systemctl restart docker
方法二:检查docker是否在运行
systemctl status docker
如果 Docker 未运行,你可以使用以下命令启动 Docker 服务
systemctl start docker
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐


所有评论(0)