compose icon indicating copy to clipboard operation
compose copied to clipboard

ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?

Open basilin opened this issue 6 years ago • 6 comments

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.

I am getting the above error on Ubuntu 18 machine when running docker compose on jenkins workspace /var/lib/jenkins/workspace

docker-compose version 1.25.1, build a82fef07
Docker version 19.03.5, build 633a0ea838
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic
systemctl status docker.service

Jan 16 06:57:53 Wdsys dockerd[19160]: time="2020-01-16T06:57:53.569004581Z" level=error msg="Handler for POST /v1.30/build returned error: invalid reference format"

basilin avatar Jan 16 '20 08:01 basilin

Can you please clarify which docker-compose command produce this error ? Can you also please try to reduce your dokcer-compose.yml file to a minimalist sample to reproduce this error ?

ndeloof avatar Jan 16 '20 14:01 ndeloof

@basilin did you find a solution ?

qalinn avatar Jan 23 '20 10:01 qalinn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 21 '20 11:07 stale[bot]

This issue has been automatically closed because it had not recent activity during the stale period.

stale[bot] avatar Jul 28 '20 17:07 stale[bot]

I was getting the same error. Needed sudo, or docker group assignment to the user running the command.

drkstr101 avatar Sep 15 '20 20:09 drkstr101

I was getting the same error. Needed sudo, or docker group assignment to the user running the command.

Using sudo worked for me as well

j-sal avatar Oct 20 '20 23:10 j-sal