Docker Rest Apis using node.js

How to run the docker rest apis in the localhost environment using node.js. I need to know the port settings and the urls which will be used on it etc.

  • Can't push a new docker image to bluemix
  • How do you get debugging symbols working in linux perf tool inside Docker containers?
  • OSError: [Errno 13] Permission denied when initializing Celery in Docker
  • Path is not writable within container
  • Can't Connect to Postgres on Docker Container via pgAdmin
  • reading IP address of a host machine inside a docker container
  • Docker - How to check if curl command inside Dockerfile had response code 200
  • Docker 1.6 and Registy 2.0
  • How to pass host variables to Docker in Elastic Beanstalk?
  • Docker mongodb config file
  • Play Framework 2.5 in production: “bad root server path”
  • What files are the .dockerignore work on?
  • One Solution collect form web for “Docker Rest Apis using node.js”

    If you installed boot2docker it should have set a DOCKER_HOST env in which case:

    var Docker = require('dockerode');
    var host = require('docker-host');
    
    var docker = new Docker(host());
    

    Should work

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