Skip to content

Commit

Permalink
Fix image sprawl miscalculation
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
  • Loading branch information
konstruktoid committed Aug 25, 2023
1 parent 5555c37 commit 26f80fb
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 26f80fb

Please sign in to comment.