Add Docker instructions to README

This commit is contained in:
Trevor Sullivan 2020-11-20 09:39:50 -07:00 committed by GitHub
parent 1af22f6bfd
commit 5768742cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,19 @@ or
[Download .exe](https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-windows-amd64.exe)
### Docker
```
# Create a configuration file
vim config.yml
# Build the container image
docker build --tag sampler .
# Run a container
docker run --interactive --tty --volume $(pwd)/config.yml:/root/config.yml sampler --config /root/config.yml
```
## Usage
You specify shell commands, Sampler executes them with a required rate. The output is used for visualization.