How to connect Docker from another host?

I tried the below:

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

But I got :

  • SBT docker:publish authentication issue
  • How to speed up an Azure web application deployment with lots of files?
  • System level tuning for Docker containers
  • Docker with Angular 4 and Django is compiled successfully but localhost:4200 is not working
  • Running Docker Container on AWS
  • Security: Better to run Docker on VM or bare metal?
  • flag provided but not defined: -d

    I am using docker 1.12.3

  • nfs volume mount to mysql docker container inside a ubuntu virtualbox fail
  • Kitematic - Force using Virtualbox
  • Error running quickstart-camelservlet in OpenShift V3 with Fabric8 and Docker
  • Docker - check private registry image version
  • How do I connect to gcloud sql with gcloud sql proxy from GKE
  • kubernetes how to set the maximum size of the log file?
  • 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:// -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.