Problem Description
I am running WSL 2 (Ubuntu) on a Windows 10 machine. I installed Docker on my Ubuntu using the official Docker guide (https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository). Running `docker run hello-world` produces the following error: `docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`.
I have tried the following steps:
1. Using `sudo docker...` instead of `docker...`
2. Adding user to docker usergroup with `sudo usermod -aG docker $(whoami)`
3. `sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &` which I found in this thread: https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/4
None of these steps helped.
`docker version` produces this output:
```
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b7f0
Built: Wed Mar 11 01:25:46 2020
OS/Arch: linux/amd64
Experimental: false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
```
`service docker status` gives `Docker is not running`. `service docker start/restart` does nothing, Docker does not start. Any ideas what could be the issue?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?