无法连接到位于 unix:///var/run/weave/weave.sock 的 Docker 守护程序。 docker 守护进程是 运行 吗?

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

systemctl status docker 显示活动并且 运行 docker ps 会给出这个错误

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

套接字的位置表明您的 $DOCKER_HOST 环境变量已设置为指向 weave proxy。它没有响应的事实意味着 weave 代理不是 运行ning.

补救措施有两种:

  1. 您可以清除环境变量,以便再次直接与 docker 对话。尝试

weave env --restore

或者如果这似乎不起作用,

export DOCKER_HOST=

  1. 或者,您可以尝试让 weave 代理到 运行,这样它就可以在套接字上进行应答。尝试上面的 link 获取说明。