Cannot connect to the Docker daemon at unix:varrundocker.sock. Is the docker daemon running?

Cannot connect to the Docker daemon at unix:varrundocker.sock. Is the docker daemon running?,第1张

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决问题方法是:

进入 /etc/docker,没有daemon.json文件就自己新建一个:

cd /etc/docker


编辑daemon.json文件:
加入这段代码

{
 "registry-mirrors": ["https://registry.docker-cn.com"]
}


然后重启docker:

systemctl restart docker.service

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/5704320.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存