diff --git a/README.md b/README.md index ca3371f..8d70918 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ docker run -it --net host --pid host --cap-add audit_control \ -v /var/lib:/var/lib \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /usr/lib/systemd:/usr/lib/systemd \ - -v /etc:/etc --label docker-bench-security \ + -v /etc:/etc --label docker_bench_security \ diogomonica/docker-bench-security ``` @@ -38,7 +38,7 @@ docker run -it --net host --pid host --cap-add audit_control \ -v /var/lib:/var/lib \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /usr/lib/systemd:/usr/lib/systemd \ - -v /etc:/etc --label docker-bench-security \ + -v /etc:/etc --label docker_bench_security \ docker-bench-security ``` diff --git a/docker-bench-security.sh b/docker-bench-security.sh index 41e9087..4ae7557 100755 --- a/docker-bench-security.sh +++ b/docker-bench-security.sh @@ -79,7 +79,7 @@ main () { benchcont="nil" for c in $containers; do labels=$(docker inspect --format '{{ .Config.Labels }}' "$c") - contains "$labels" "docker-bench-security" && benchcont="$c" + contains "$labels" "docker_bench_security" && benchcont="$c" done # List all running containers except docker-bench (use names to improve readability in logs) containers=$(docker ps | sed '1d' | awk '{print $NF}' | grep -v "$benchcont")