Enable Remote API on Docker hosts in Ubuntu 14

I am running ‘Docker version 1.10.3, build 20f81dd’ on Ubuntu 14.04. Now my requirement is to create/delete/manage new container from the REST API (HTTP) from outside world. So, for this how could I enable Docker to run on a port.

It will be helpful if I get details step as in net I tried few but didn’t work.

  • Docker permission problems when doing volume mapping
  • Difference between Docker registry and repository
  • Docker Error - “jq: error: Cannot iterate over null”
  • Docker container with Centos as base image is not running
  • Why doesn't docker run support using --rm and -d at the same time?
  • Docker: Logging From Both App and Server In One Container
  • How to dockerize maven project? and how many ways to accomplish it?
  • Phusion Passenger http to https results in redirect loop
  • Connect to Windows 10 Docker daemon from ubuntu bash
  • Where can I find the list of Docker format template variables?
  • Docker swarm with consul
  • Access docker /var/jenkins_home from my mac
  • One Solution collect form web for “Enable Remote API on Docker hosts in Ubuntu 14”

    I found the solution and it’s very easy at all. Here is the configuration.

    Got To:
    vi /etc/default/docker

    Add DOCKER_OPTS=”-H tcp://″

    restart docker service.

    Run netstat -lnp and see docker is running on port 2375

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