Skip to content

Commit

Permalink
Merge pull request #535 from konstruktoid/issue532
Browse files Browse the repository at this point in the history
Fix image sprawl miscalculation
  • Loading branch information
konstruktoid authored Aug 25, 2023
2 parents 5555c37 + 26f80fb commit 9120d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/6_docker_security_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check_6_1() {
images=$(docker images -q | sort -u | wc -l | awk '{print $1}')
active_images=0

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

0 comments on commit 9120d42

Please sign in to comment.