Skip to content

ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running? – Docker Compose Error – How to fix?

sudo docker-compose up

ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running? – The reason for this error is you do not have permission to use the docker-compose service from your user account. One quick solution would be to use the direct path of the docker compose to run your docker-compose file.

sudo  /usr/local/bin/docker-compose up

One more common error docker-compose: command not found can also be fixed using this solution.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.