title: Unable to install Docker on Azure VM
body: <p>I have an Azure VM on which I am trying to install docker. The installation proceeds smoothly. When I try to run the hello world example of docker, I get this error <code>docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.</code></p>
  
  <p>This is the <a href="https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1" rel="nofollow noreferrer">procedure</a> I followed. I have run the docker with sudo. I can't figure out what is causing the problem. Any helps on figuring out this would be much appreciated. I have scoured the internet on fixing this issue. Nothing has worked. I have uninstalled docker completely, and reinstalled it again. Nothing seems to work. </p>
  
  <p>EDIT: I have narrowed down the problem to the fact that the daemon has to be started manually. How do I ensure the daemon starts running as soon as the machine is up or docker is started? Running <code>sudo dockerd</code> and then running <code>docker run hello-world</code> seems to work. </p>