1.0.3 • Published 9 years ago
ncker v1.0.3
ncker
Node Docker in code runner.
Couldn't find one that was as simple as this. Make sure docker is installed, and that the image you are going to use has been pulled in.
Example:
var ncker = require('./index');
ncker.run({
image: "iojs",
ports: ["8080:8080", "21:21"],
volumes: [
"/var/www/somesite.dev:/var/www/somesite.dev",
],
command: "npm install",
workingdir: "/var/www/somesite.dev",
detached: true,
name: "npm_installer",
dnshost: "iojs.somesite.dkr"
});