An open API service indexing awesome lists of open source software.

https://github.com/knownasilya/docker-shell

Run commands against a docker container
https://github.com/knownasilya/docker-shell

commands docker nodejs shell wip

Last synced: 2 months ago
JSON representation

Run commands against a docker container

Awesome Lists containing this project

README

          

# docker-shell

Run shell commands in a running Docker container

## Example

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

shell.run('echo "hi"')
.then(() => {
shell.destroy()
})
```

## Run Tests

```bash
DOCKER_IP= DEBUG=docker-shell:* npm test
```