Count unique image ids only

Signed-off-by: Ivan Angelov <iangelov@users.noreply.github.com>
This commit is contained in:
Ivan Angelov 2015-08-10 16:27:32 +02:00
parent 3571e2738e
commit 7ada35cd90

View file

@ -36,7 +36,7 @@ set +f; unset IFS
# 6.6
check_6_6="6.6 - Avoid image sprawl"
images=$(docker images -q | wc -l | awk '{print $1}')
images=$(docker images -q | sort -u | wc -l | awk '{print $1}')
active_images=0
for c in $(docker inspect -f "{{.Image}}" $(docker ps -qa)); do