Docker Desktop v4.37.1 not working from WSL2 shell

Hi!

I am using Docker Desktop for Windows with WSL2 backend on Windows 11 Enterprise 23H2. My default WSL2 distro is Ubuntu 22.04.

When running docker ps in the WSL2 shell, I am getting the error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. Executing the same command in PowerShell works.

I have used Docker Desktop for quite a while and haven’t encountered this issue before v4.37.1, so to me it seems to be an issue related to this version? Downgrading to v4.36.0 solves the issue, but then auto update upgrades to v4.37.1 again.

Any ideas how to fix this issue?