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
- Host: GitHub
- URL: https://github.com/knownasilya/docker-shell
- Owner: knownasilya
- Created: 2017-02-26T22:20:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T19:36:46.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T22:43:24.850Z (about 1 year ago)
- Topics: commands, docker, nodejs, shell, wip
- Language: JavaScript
- Size: 61.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```