From 57ac3cee994892190956709d7cd93a9aea55d05e Mon Sep 17 00:00:00 2001 From: Pete Sellars Date: Wed, 5 Aug 2015 22:08:39 +1200 Subject: [PATCH] Fix filtering out docker-bench-security container from results Signed-off-by: Pete Sellars --- docker-bench-security.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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