mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Taking read-only out
Mounting `/etc:ro` was causing issues in OpenSuse and Centos 5.6
This commit is contained in:
parent
362c62ac6e
commit
2700ef95ba
1 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,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:ro \
|
docker run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /usr/lib/systemd:/usr/lib/systemd:ro -v /etc:/etc:ro --label docker-bench-security \
|
-v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc --label docker-bench-security \
|
||||||
diogomonica/docker-bench-security
|
diogomonica/docker-bench-security
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ If you wish to build and run this container yourself, you can follow the followi
|
||||||
```
|
```
|
||||||
git clone https://github.com/diogomonica/docker-bench-security.git
|
git clone https://github.com/diogomonica/docker-bench-security.git
|
||||||
cd docker-bench-security; docker build -t docker-bench-security .
|
cd docker-bench-security; docker build -t docker-bench-security .
|
||||||
docker run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock:ro \
|
docker run -it --net host --pid host -v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /usr/lib/systemd:/usr/lib/systemd:ro -v /etc:/etc:ro --label security-benchmark \
|
-v /usr/lib/systemd:/usr/lib/systemd -v /etc:/etc --label security-benchmark \
|
||||||
docker-bench-security
|
docker-bench-security
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue