docker-scripts/cleanup-all-images.sh

13 lines
219 B
Bash
Raw Permalink Normal View History

2023-12-23 14:28:27 +02:00
#!/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