Cannot connect to the Docker daemon at tcp://0.0.0.0:2375 when using WSL2 and Docker Desktop

When you were running Docker in WSL2 and got this error message Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?” Instead, turn on “Expose daemon on tcp://localhost:2375 without TLS” option and use the DOCKER_HOST variable which considers security risk. The best option is enabled WSL Integration in Docker Desktop.

i.e. Docker Desktop > Resources > WSL Integration > Check: “Enable Integration with my default WSL distro” and enable the slide option to Ubuntu.

  •  
  •  
  •  
  •  

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.