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
docker -H tcp://<ip address>:2375 ps
docker -H tcp://<hostname of mgmt box>.eastus.cloudapp.azure.com:2375 ps
Both commands render Cannot connect to the Docker daemon. Is the docker daemon running on this host? 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.
Running docker ps on the machine directly I can see swarm running on port 2375. I've tried do access it via ports 2375,2376,3375,3376