How can I connect my local docker client to a remote docker host on my network?
I have a ubuntu server box on my local network on which I intend to setup my containers. However, at this point, I have to SSH into that box from my development box manually and then run the containers.
I attempted to set the $DOCKER_HOST
environment variable on my development box and also ensured that the 2376 port is opened on the docker host box. But when I tried to run the docker commands, but I keep getting the message:
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
P.S. Is there a way to configure my docker host to bind the docker server to a different hostname and port?
docker-machine
. I have another server box on my network which has docker installed on it. I am unable to configure the server box and my local docker client to connect to the docker daemon running on my server box and run containers. I tried to set the$DOCKER_HOST
environment variable on my local box to point to the server box. But this is not working.