How to enable docker remote API on docker host?

How to enable docker remote API on docker host?

  1. Find the line which starts with ExecStart and adds -H=tcp://0.0.0.0:4243 to make it look like
    ExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:4243
  2. Save the Modified File
  3. Reload the docker daemon using the below command
    systemctl daemon-reload
  4. Restart the docker service using the below command
    sudo service docker restart
  5. Test if it is working by using this command, if everything is fine below command should return a JSON
    curl http://localhost:4243/images/json
  6. To test remotely, use the PC name or IP address of Docker Host

                  New to ADSelfService Plus?