mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 08:42:33 +01:00
commit
83214e76b0
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ The easiest way to run your hosts against the Docker Bench for Security is by ru
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -it --net host --pid host --cap-add audit_control \
|
docker run -it --net host --pid host --cap-add audit_control \
|
||||||
|
-e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \
|
||||||
-v /var/lib:/var/lib \
|
-v /var/lib:/var/lib \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /usr/lib/systemd:/usr/lib/systemd \
|
-v /usr/lib/systemd:/usr/lib/systemd \
|
||||||
|
@ -37,6 +38,7 @@ git clone https://github.com/docker/docker-bench-security.git
|
||||||
cd docker-bench-security
|
cd docker-bench-security
|
||||||
docker build -t docker-bench-security .
|
docker build -t docker-bench-security .
|
||||||
docker run -it --net host --pid host --cap-add audit_control \
|
docker run -it --net host --pid host --cap-add audit_control \
|
||||||
|
-e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \
|
||||||
-v /var/lib:/var/lib \
|
-v /var/lib:/var/lib \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /usr/lib/systemd:/usr/lib/systemd \
|
-v /usr/lib/systemd:/usr/lib/systemd \
|
||||||
|
|
Loading…
Reference in a new issue