Skip to content

Commit 9120d42

Browse files
authored
Merge pull request #535 from konstruktoid/issue532
Fix image sprawl miscalculation
2 parents 5555c37 + 26f80fb commit 9120d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/6_docker_security_operations.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ check_6_1() {
2020
images=$(docker images -q | sort -u | wc -l | awk '{print $1}')
2121
active_images=0
2222

23-
for c in $(docker inspect --format "{{.Image}}" "$(docker ps -qa)" 2>/dev/null); do
23+
for c in $(docker inspect --format "{{.Image}}" $(docker ps -qa) 2>/dev/null); do
2424
if docker images --no-trunc -a | grep "$c" > /dev/null ; then
2525
active_images=$(( active_images += 1 ))
2626
fi

0 commit comments

Comments
 (0)