Setup Docker and given Dockerfile in a remote machine.

Install Docker, build and run a Dockerfile as daemon in the specific remote machine.

$ npm install -g setup-docker
$ setup-docker redis Dockerfile root@

Run setup-docker -h to see full options.

var setup = require('setup-docker')
setup({ name: "my-app", ssh: 'root@', dockerfile: 'path/to/Dockerfile', port: '80:8080' }, function (error) {
  if (error) throw error
  console.log('my-app is installed and running on')

For now, it only supports Ubuntu 13 (on the host machine). PRs are welcome for other distros and other Ubuntu versions, see lib/ubuntu.js for extending it.

Enable logs by;

$ DEBUG=setup-docker:*