mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-25 20:27:49 +00:00
label rule for 1.8
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
887f5a4e34
commit
815b369237
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue