Creating a container to a remote server


On Docker for Beginners at the Docker Engine section, I was trying to create a container to a remote docker host. HostA and HostB can both create containers locally no problem but from HostA to HostB i am getting this… any idea?

root@core02-ns1-br:~# docker -H= run nginx
docker: Cannot connect to the Docker daemon at tcp:// Is the docker daemon running?.
See ‘docker run --help’.