diff --git a/docker-bench-security.sh b/docker-bench-security.sh index 9ef6bd8..7a2b512 100755 --- a/docker-bench-security.sh +++ b/docker-bench-security.sh @@ -74,7 +74,7 @@ done # Load all the tests from tests/ and run them main () { # List all running containers - containers=$(docker ps -q) + containers=$(docker ps | sed '1d' | awk '{print $NF}') # If there is a container with label docker_bench_security, memorize it: benchcont="nil" for c in $containers; do