0

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.

lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
Rahul Tailwal
  • 3,183
  • 3
  • 14
  • 27

1 Answers1

0

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

generalhenry
  • 17,227
  • 4
  • 48
  • 63