From 9cccfa6902f00599515fa77782f4d9a6a5ebe797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 1 Jun 2015 22:20:03 +0200 Subject: [PATCH] get the correct number of images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/6_docker_security_operations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/6_docker_security_operations.sh b/tests/6_docker_security_operations.sh index d1191b5..7cc1320 100644 --- a/tests/6_docker_security_operations.sh +++ b/tests/6_docker_security_operations.sh @@ -36,7 +36,7 @@ set +f; unset IFS # 6.6 check_6_6="6.6 - Avoid image sprawl" -images=$(docker images | wc -l | awk '{print $1}') +images=$(docker images -q | wc -l | awk '{print $1}') if [ "$images" -gt 100 ]; then warn "$check_6_6" warn " * There are currently: $images images"