mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
get the correct number of images
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
2700ef95ba
commit
9cccfa6902
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue