title: Cannot connect to Docker daemon in Azure Container Service
body: <p>I'm trying to run docker commands from my local machine against a Azure Container Service with Docker Swarm. The command I use is as follows</p>
  
  <pre><code>docker -H tcp://&lt;ip address&gt;:2375 ps
  docker -H tcp://&lt;hostname of mgmt box&gt;.eastus.cloudapp.azure.com:2375 ps
  </code></pre>
  
  <p>Both commands render <code>Cannot connect to the Docker daemon. Is the docker daemon running on this host?</code> I can ssh to the management machine and run docker commands so I know docker is working properly. There aren't any security groups associated with the resource so there doesn't appear to be any firewall problem.</p>
  
  <p>Running <code>docker ps</code> on the machine directly I can see swarm running on port 2375. I've tried do access it via ports 2375,2376,3375,3376</p>