title: Why is the Docker service stopping?
body: <p>I'm running Ubuntu as a subsystem on Windows 10.</p>
  
  <p>I have just followed the steps to install Docker on Linux:
  <a href="https://docs.docker.com/install/linux/docker-ce/ubuntu/" rel="nofollow noreferrer">https://docs.docker.com/install/linux/docker-ce/ubuntu/</a></p>
  
  <p>And are now at the step to test the hello-world app:</p>
  
  <pre><code>$ sudo docker run hello-world
  </code></pre>
  
  <p>Where I get this error:</p>
  
  <pre><code>docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
  </code></pre>
  
  <p>I have narrowed it down to that it actually is the service that is not running - despite lots of other solutions online that more or less fixes this type of error.</p>
  
  <p>When I check the status:</p>
  
  <pre><code>$ sudo service docker status
  * Docker is not running
  </code></pre>
  
  <p>It says it's not running so I start it successfully:</p>
  
  <pre><code>$ sudo service docker start
  * Starting Docker: docker                                                                                       [ OK ]
  </code></pre>
  
  <p>If I check the status immediately it says it's running. But when I check it again a few second later, it's not runnning:</p>
  
  <pre><code>$ sudo service docker status
  * Docker is running
  
  $ sudo service docker status
  * Docker is not running
  </code></pre>
  
  <p>Why is the Docker service stopping and how can I keep it running?</p>