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.
Asked
Active
Viewed 324 times
1 Answers
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