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 :

  • How to perform live migration for dockers?Is there any source available to perform it
  • What are the differences between a VM image and a Docker image? [duplicate]
  • Docker-compose Error
  • docker service update: “image could not be accessed on a registry to record it's digest”
  • How to create a Dockerfile for cassandra (or any database) that includes a schema?
  • edit docker container files with OS X Sublime Text
  • flag provided but not defined: -d
    

    I am using docker 1.12.3

  • Meteor run server getting error: “Could not locate the bindings file. […]bcrypt[…]”
  • Setting .htcaccess in an external volume for Docker not working
  • creating staging environment locally on single host using docker
  • How to access Weave DNS-Server from external?
  • Cannot ping server after docker run
  • How to access scripts in different Docker containers from a single place?
  • 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.