Score:0

Cannot start Docker on WSL2

me flag

I am running Docker Desktop on W11. Docker Desktop > Settings > Resources > WSL Integration is enabled. Tried to restart the WSL from services (Lxssmanager) or to shutdown/reboot it with wsl --shutdown, no effect.

WSL Integration enabled

Although when I try to build image from Dockerfile this error pops up:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

$ docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.9.1)
  compose: Docker Compose (Docker Inc., v2.12.1)
  dev: Docker Dev Environments (Docker Inc., v0.0.3)
  extension: Manages Docker extensions (Docker Inc., v0.2.13)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.21.0)

Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info

It can't connect to dockerd, but somehow it prints out some information? I'm confused.

$ sudo systemctl start docker

Failed to start docker.service: Unit docker.service not found.

Any tips are welcome! Thank you

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.