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 :

  • Edit Files in Docker Container without SSH?
  • Docker Stack Swarm - Service Replicas are not spread for Mutli Service Stack
  • How to version control Docker containers' data volumes?
  • Docker on Windows with Dart Docker Image
  • How to setup Continuous Integration (with Ansible)? [closed]
  • Which Official Docker Image(s) should I use for running an application with multiple dependencies?
  • flag provided but not defined: -d
    

    I am using docker 1.12.3

  • Test Docker cluster in Jenkins
  • Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 in Docker container
  • What are <none> repository and tags? Why do they appear when I use docker build?
  • Docker copy file from container to host with file permissions & ownership intact
  • How to config the marathon-lb when the container run in HOST network?
  • Docker, what is it and what is the purpose
  • 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.