#!/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