the docker client on wsl2 does not work without sudo

Weird solution for this one – but go ahead and try:


And if that works, you can make the fix permanent by going back and commenting out the “export DOCKER_HOST=tcp://localhost:2375” in your .bashrc file. I think it has something to do with how docker is configured in WSL 2 vs. WSL 1, but Docker never updated their documentation to reflect this.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top