How to connect Docker from another host?

I tried the below:

sudo docker -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -d &

But I got :

  • Docker how to map subdirectory to port
  • Unable to mount a folder on C Drive as Volume
  • AWS ECS container can't specify a region
  • Why is networking so slow in this Fig/Docker container?
  • Permission denied in custom buildpack
  • Unable to retrieve restored archive from AWS S3 'Invalid size value: 1g'
  • flag provided but not defined: -d
    

    I am using docker 1.12.3

  • Transition PostgreSQL persistent storage on docker to modern docker storage only
  • deploy containers on swarm cluster using compose file without using docker machine
  • Why is my docker image size much bigger than my application?
  • Restricting file access of Docker container
  • Docker network (namespaces): how to tag network packages?
  • How to get 'man' working in an Alpine Linux Docker container?
  • One Solution collect form web for “How to connect Docker from another host?”

    I found -d is deprecated now. Instead of that dockerd is used.

    sudo dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
    

    Official Documentation Reference

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.