You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Integration with Default WSL2 distro and Integration with Ubuntu 20.04 is turned on in Docker Desktop, when it tries to connect to the docker daemon it fails, and I get this error:
I also get this both in Docker Desktop and in WSL:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
There is no docker.sock in /var/run in the distro.
Here's what I've tried:
Uninstalled and reinstalled Docker Desktop.
Cleaned/Purged all data.
Shutdown and restarted WSL
Allowed all connections from Docker Backend in the Windows Firewall
Unregistered docker-desktop distro and restarted.
It was all working perfectly until suddenly one day this error appeared and hasn't left since. The only time it was solved is when I reinstalled Docker Desktop for maybe the fifth time and it worked without errors for a couple hours, then I closed Docker and when I reopen it the error is back.
Reproduce
Installed Docker Desktop
Turned on Integration with WSL
Waited
Expected behavior
No response
docker version
Client:
Version: 27.4.0
API version: 1.47
Go version: go1.22.10
Git commit: bde2b89
Built: Sat Dec 7 10:37:44 2024
OS/Arch: linux/amd64
Context: default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker info
Client:
Version: 27.4.0
Context: default
Debug Mode: false
Plugins:
ai: Ask Gordon - Docker Agent (Docker Inc.)
Version: v0.5.1
Path: /usr/local/lib/docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.19.2-desktop.1
Path: /usr/local/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.31.0-desktop.2
Path: /usr/local/lib/docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.37
Path: /usr/local/lib/docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Beta) (Docker Inc.)
Version: v0.1.0
Path: /usr/local/lib/docker/cli-plugins/docker-desktop
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: /usr/local/lib/docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.27
Path: /usr/local/lib/docker/cli-plugins/docker-extension
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.5
Path: /usr/local/lib/docker/cli-plugins/docker-feedback
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /usr/local/lib/docker/cli-plugins/docker-init
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /usr/local/lib/docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.15.1
Path: /usr/local/lib/docker/cli-plugins/docker-scout
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
Description
When Integration with Default WSL2 distro and Integration with Ubuntu 20.04 is turned on in Docker Desktop, when it tries to connect to the docker daemon it fails, and I get this error:
I also get this both in Docker Desktop and in WSL:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
There is no
docker.sock
in/var/run
in the distro.Here's what I've tried:
docker-desktop
distro and restarted.It was all working perfectly until suddenly one day this error appeared and hasn't left since. The only time it was solved is when I reinstalled Docker Desktop for maybe the fifth time and it worked without errors for a couple hours, then I closed Docker and when I reopen it the error is back.
Reproduce
Expected behavior
No response
docker version
Client: Version: 27.4.0 API version: 1.47 Go version: go1.22.10 Git commit: bde2b89 Built: Sat Dec 7 10:37:44 2024 OS/Arch: linux/amd64 Context: default Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker info
Diagnostics ID
99CEE2A2-E4E7-4837-99A3-7B0DF05FD5E1/20250223182611
Additional Info
No response
The text was updated successfully, but these errors were encountered: