title: Docker not running on Ubuntu WSL due to error cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
body: <p>I am running WSL 2 (Ubuntu) on a Windows 10 machine. I installed Docker on my Ubuntu using the official Docker guide (<a href="https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository" rel="noreferrer">https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository</a>). Running <code>docker run hello-world</code> produces the following error: <code>docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</code>.</p>
  
  <p>I have tried the following steps:</p>
  
  <ol>
  <li>Using <code>sudo docker...</code> instead of <code>docker...</code></li>
  <li>Adding user to docker usergroup with  <code>sudo usermod -aG docker $(whoami)</code></li>
  <li><code>sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &amp;</code> which I found in this thread: <a href="https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/4" rel="noreferrer">https://forums.docker.com/t/cannot-connect-to-the-docker-daemon-is-the-docker-daemon-running-on-this-host/8925/4</a></li>
  </ol>
  
  <p>None of these steps helped.</p>
  
  <p><code>docker version</code> produces this output:</p>
  
  <pre><code>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?
  </code></pre>
  
  <p><code>service docker status</code> gives <code>Docker is not running</code>. <code>service docker start/restart</code> does nothing, Docker does not start. Any ideas what could be the issue?</p>