当前位置: 代码迷 >> 综合 >> docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon run
  详细解决方案

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

热度:33   发布时间:2023-11-11 07:27:34.0

参考链接:
https://segmentfault.com/q/1010000005040763

一、

因为,我忘记启动docker这个服务了。

service docker start

二、

You need to add user into docker group. by ’ sudo gpasswd-a xxxx docker’(xxx is your user name)

Then restart your computer.

This problem should be solved.

docker默认只允许root用户连接,想用其他用户需要添加。

docker-machine restart&&eva"$(docker-machine env default)"&&docker-machine env

运行这么一串
就好了

  相关解决方案