Fix issue, as previous command was including a title row 'IMAGE'.

This commit is contained in:
Tom Page
2020-04-03 11:53:13 +01:00
parent 852e65167c
commit 97813d542d

View File

@@ -14,7 +14,6 @@ else
echo "Deleting images was successful."
else
echo "Deleting specified images failed, so falling back to delete ALL images on system."
docker_images_list=$(docker images | awk '{print $3}' | uniq)
docker rmi -f $docker_images_list
docker rmi -f $(docker images -aq)
fi
fi