mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Updated Readme to reflect --label need
This commit is contained in:
parent
1ebf49c35a
commit
1cd54124c7
1 changed files with 5 additions and 2 deletions
|
@ -13,7 +13,8 @@ The easiest way to run your hosts against the CIS Docker 1.6 benchmark is by run
|
|||
|
||||
```
|
||||
docker run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc diogomonica/docker-security-benchmark
|
||||
-v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc --label security-benchmark \
|
||||
diogomonica/docker-security-benchmark
|
||||
```
|
||||
|
||||
## Building the benchmark
|
||||
|
@ -23,7 +24,9 @@ If you wish to build and run this container yourself, you can follow the followi
|
|||
```
|
||||
# git clone https://github.com/diogomonica/docker-security-benchmark.git
|
||||
# cd docker-security-benchmark; docker build -t docker-security-benchmark .
|
||||
# docker run run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock -v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc docker-security-benchmark
|
||||
# docker run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc --label security-benchmark \
|
||||
docker-security-benchmark
|
||||
```
|
||||
|
||||
Also, this script can also be simply run from your base host by running:
|
||||
|
|
Loading…
Reference in a new issue