Merge pull request #535 from konstruktoid/issue532

Fix image sprawl miscalculation
This commit is contained in:
Thomas Sjögren 2023-08-25 14:18:55 +02:00 committed by GitHub
commit 9120d426ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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