Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL Integration Error #14626

Open
shyam-k0 opened this issue Feb 23, 2025 · 1 comment
Open

WSL Integration Error #14626

shyam-k0 opened this issue Feb 23, 2025 · 1 comment

Comments

@shyam-k0
Copy link

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:

Image

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

  1. Installed Docker Desktop
  2. Turned on Integration with WSL
  3. 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

Diagnostics ID

99CEE2A2-E4E7-4837-99A3-7B0DF05FD5E1/20250223182611

Additional Info

No response

@YIA990
Copy link

YIA990 commented Feb 24, 2025

DOCKER DESKTOP ISSUES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants