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.
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());