mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
Count unique image ids only
Signed-off-by: Ivan Angelov <iangelov@users.noreply.github.com>
This commit is contained in:
parent
3571e2738e
commit
7ada35cd90
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 -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
|
||||
|
|
Loading…
Reference in a new issue