docker-scripts/cleanup-all-images.sh
Eliezer Croitoru 9c68b2789a 1
2023-12-23 12:28:27 +00:00

13 lines
219 B
Bash

#!/usr/bin/env sh
#IMAGES=$(docker images --filter "dangling=true" -q --no-trunc)
IMAGES=$(docker images -q --no-trunc)
if [ -z "${IMAGES}" ]
then
echo "There are no images to cleanup"
else
docker rmi ${IMAGES}
fi