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

554 views Asked by At

systemctl status docker shows active and running docker ps will give this error

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

1

There are 1 answers

0
Michael Bridgen On BEST ANSWER

The location of the socket indicates that your $DOCKER_HOST environment variable has been set to point at the weave proxy. The fact that it doesn't respond means that the weave proxy is not running.

There are two remedies:

  1. You can clear the environment variable, so that you're talking directly to docker again. Try

weave env --restore

or if that doesn't appear to work,

export DOCKER_HOST=

  1. Or, you can try to get the weave proxy to run, so that it's there to answer on the socket. Try the link above for instructions.