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 container exits immediately despite Service Running
  • Config separate container to different host on Rancher platform
  • Efficient development flow for Cloud Foundry
  • Docker-Compose - Communication with “Internal” Api.
  • How to get client IP from request inside haproxy docker container?
  • docker: Error response from daemon: Error processing tar file(exit status 1): lchown /.bash_logout: operation not permitted
  • Exposing docker container on local server
  • Why the Linux total storage auto increase?
  • NGINX Reverse Proxy not working
  • PHPStorm debug application deployed using docker inside vagrant
  • Variable substitution in docker-compose.yml file when running docker-compose with sudo
  • Unable to do port forwarding: socat not found. Kubernetes on Docker
  • 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://127.0.0.1:2375″

    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.