title: Azure DevOps with self-hosted Ubuntu machine: docker fails
body: <p>I created an Azure DevOps agents based on the Ubuntu image that can be found here: <a href="https://github.com/Microsoft/azure-pipelines-image-generation" rel="nofollow noreferrer">https://github.com/Microsoft/azure-pipelines-image-generation</a></p>
  
  <p>After I deployed the machine and installed the agent (see <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=vsts" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=vsts</a>) I ran a Docker task and got the following error:</p>
  
  <blockquote>
    <p>dial unix /var/run/docker.sock: connect: permission denied</p>
  </blockquote>
  
  <p>What do I have to do to get the Docker task executed successfully?</p>