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

Hi, I’m trying to install WebODM on my desktop PC, but when I run “./webodm.sh start” I get the following error. As per instructions, I first installed Docker. I also tried to install NodeODM which works properly instead. Can you help me?

On my pc I have: Ubuntu 18.04.4 LTS;
Intel® Core™ i5-4440 CPU @ 3.10GHz × 4
93,3 GB Hard Disk
7,5GiB DDR3 RAM

~/WebODM$ ./webodm.sh start
Checking for docker… OK
Checking for git… OK
Checking for docker-compose… OK
Starting WebODM…

Using the following environment:

Host: localhost

Port: 8000
Media directory: appmedia
SSL: NO
SSL key:
SSL certificate:
SSL insecure port redirect: 80
Celery Broker: redis://broker
Default Nodes: 1

Make sure to issue a ./webodm.sh down if you decide to change the environment.

docker-compose -f docker-compose.yml -f docker-compose.nodeodm.yml start || docker-compose -f docker-compose.yml -f docker-compose.nodeodm.yml up --scale node-odm=1
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.
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.

2 Likes

Hi Leo, Did you find a solution? I too am having the same error.

EDIT: Found a solution as the problem must have been user permissions:

run “sudo ./webodm.sh start”

Luke

1 Like

I have not yet found a solution, thanks for the advice, I will try to do it

Thanks a lot, I managed to solve it by doing so!

I will confess that I don’t know if there is any harm in running docker with sudo, but as a general practice, it is best to not run things via sudo if you can avoid it.

It is probably better to add the user to the docker group:

sudo usermod -aG docker ${USER}

Then log out and back in, or do so as follows:

su - ${USER}
2 Likes

Thanks a lot for the tip, I always ran all the commands with sudo because otherwise the terminal said got permission denied.
I suggest you add this indication in the installation guide in the Github page, in order to make it accessible even to less experienced people like me :slight_smile:

1 Like

Can you do a pull request to add it? The docs are very easy to add to:

:smiley:

1 Like

I’ll try

2 Likes