Getting Nextflow to detect docker engine

I’m following through the tutorial at Simple RNA-Seq workflow - training.nextflow.io.

I installed Docker but Nextflow doesn’t seem to be detecting it for some reason.

It gives me the error docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I checked and the Docker engine is indeed running.

Hi @A_AD,

You’re running Nextflow locally and it’s giving you this error, right?

In this case, can you try running in your terminal docker run hello-world? If you get a similar error, it’s not Nextflow. If it works just fine, and you’re running locally (no executor being set), then we gotta investigate.

Yes I’m running locally. The earlier hello world split example in the tutorial works fine. It’s when I try to run the sample rnaseq example that attempts to use docker for salmon that it gives me issues. Presumably because it can’t find docker and I haven’t been able to find how to specify dockers location to next flow in the docs.

Sorry, maybe I wasn’t clear. Forget Nextflow for a second. What happens when you run docker run hello-world? This is not a Nextflow command, it’s nothing to do with Nextflow :slight_smile: The path we will take to debug this changes dramatically if this docker command works or gives a similar error message.

docker run hello-world

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See ‘docker run --help’.

Okay I think I solved the issue. Docker engine wasn’t installed even though it looked like it was from Docker Desktop.

Thanks for sharing :wink:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.