docker-compose up failing in Ubuntu 18.04


docker-compose up is failing with the following error.

$ docker-compose up
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

1 Answer

4 years ago by

Check the docker ps command once, hope that will also fail.
This looks like a permission issue for your current user. Try running the following command and try again

sudo chmod 666 /var/run/docker.sock
4 years ago by Megamind