update getting started & documentation to remove -v /dev/ mount and --privileged requirement. Uses --cap-add and --device instead

close #26
close #18
This commit is contained in:
Jason Kulatunga
2020-09-23 20:49:56 -06:00
parent e44864e64b
commit 9bd8aec315
3 changed files with 22 additions and 9 deletions
+4 -2
View File
@@ -22,12 +22,14 @@ If related to missing devices or SMART data, please run the `collector` in DEBUG
```
docker run -it --rm -p 8080:8080 \
-v /run/udev:/run/udev:ro \
-v /dev/disk:/dev/disk \
--cap-add SYS_RAWIO \
--device=/dev/sda \
--device=/dev/sdb \
-e DEBUG=true \
-e COLLECTOR_LOG_FILE=/tmp/collector.log \
-e SCRUTINY_LOG_FILE=/tmp/web.log \
--name scrutiny \
--privileged analogj/scrutiny
analogj/scrutiny
# in another terminal trigger the collector
docker exec scrutiny scrutiny-collector-metrics run