1.0.0-alpha.1 • Published 7 years ago

docker-shell v1.0.0-alpha.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

docker-shell

Run shell commands in a running Docker container

Example

const DockerShell = require('docker-shell')
const shell = new DockerShell({
  // default options
  containerImage: 'node:alpine'
})
const packageName = 'ember-cli'

shell.run(`npm install -g ${packageName}`)
  .then(({ kill, container }) => {
    kill()
  })