Docker运行报错Cannot connect to the Docker daemon解决方法

晓梦 2021年11月28日20:46:08技术教程评论825271字阅读0分54秒

问题描述

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

解决方法

[root@VM-4-4-centos ~]# systemctl daemon-reload
[root@VM-4-4-centos ~]# sudo service docker restart
[root@VM-4-4-centos ~]# sudo service docker status

当你看到 Active: active (running) 说明已经可以运行了文章源自晓梦个人主页-https://www.xmbkw.com/16.html

文章源自晓梦个人主页-https://www.xmbkw.com/16.html
晓梦
  • 本文由 发表于 2021年11月28日20:46:08
  • 转载请务必保留本文链接:https://www.xmbkw.com/16.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定