当前位置: 代码迷 >> 综合 >> Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
  详细解决方案

Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?

热度:84   发布时间:2023-12-12 20:45:16.0

github 上的 issue 原文

docker-compose up 

运行之后出现:

Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?

其实是权限问题,老外在github上讲了

solution:

sudo chown $USER:$USER -R .

将当前目录下所有文件的拥有者改为当前用户,(chown)change owner 改变拥有者 为 $USER (当前用户) -R 是递归(recursion) 的意思。

over

  相关解决方案