Works great! Thank you for this solution!
WSL and Docker for Windows: "Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?"
Solved it by resetting Shared Drives credentials :
- Go to Shared Drives
- Hit Reset credentials
- Type password again
- Share drive again
Thanks. This solution works great
I have been struggling with this for well over a year. Some days, connectivity to Docker for Windows works flawlessly within WSL. Other days, the dreaded “Cannot connect to the Docker daemon…” error (usually after Windows updates). No amount of restarting / resetting Docker typically helps, and I often have to reboot numerous times until finally it decides it wants to allow connections again.
Right now, I’m having the issue. I can confirm that running this in cmd.exe and then trying to connect in WSL works. I was concerned that this might break volume mounts from WSL, but they too work perfectly.
Make sure to check the box next to the following:
Docker desktop --> Settings --> General --> “Expose daemon on tcp://localhost:2375 without TLS”