mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-27 21:09:11 +00:00
exclude docker-bench-security container #286
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
a7a24a8d7f
commit
9d9da6d375
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ beginjson "$version" "$(date +%s)"
|
|||
main () {
|
||||
# If there is a container with label docker_bench_security, memorize it:
|
||||
benchcont="nil"
|
||||
for c in $containers; do
|
||||
for c in $(docker ps | sed '1d' | awk '{print $NF}'); do
|
||||
if docker inspect --format '{{ .Config.Labels }}' "$c" | \
|
||||
grep -e 'docker.bench.security' >/dev/null 2>&1; then
|
||||
benchcont="$c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue