From 815b369237ad6c78a982dd4d40cc90d15bcc415a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 25 Jul 2015 14:20:56 +0200 Subject: [PATCH] label rule for 1.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- README.md | 4 ++-- docker-bench-security.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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")