permission denied while trying to connect to the Docker daemon socket at unix

New to QIIME, trying to install. Successfully installed WSL, Ubuntu, Miniconda, Docker in linux (got Hello-world confirmation). When I tried to follow these instructions (from this site: QIIME 2 Library):

  ### 2. Download base image
  
  Run the following command to pull the selected image:
  
erik@EriksLG:~$ docker pull quay.io/qiime2/amplicon:2025.4

I got the following error message:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.50/images/create?fromImage=quay.io%2Fqiime2%2Famplicon&tag=2025.4": dial unix /var/run/docker.sock: connect: permission denied

Tried searching this here and online, not clear how to proceed. Any assistance greatly appreciated. Apologies if this is a common error with an existing solution. -Erik

Hello @Erik,

I apologize for the delayed response. We had a short work week last week at the University where the main QIIME 2 team is based.

If you are still having this issue, have you tried running the command with sudo? It's often necessary for Docker. In addition, you could natively install QIIME 2 in WSL using conda.

Thank you

Thanks Oddant1, That worked!

1 Like

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