Merge pull request #96 from pcgeek86/patch-2

Add Docker instructions to README
This commit is contained in:
Alexander Lukyanchikov 2021-01-19 12:10:02 -08:00 committed by GitHub
commit 667581b005
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.