13 lines
219 B
Bash
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
|