2014-10-17 12:40:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-07-13 07:11:27 +00:00
|
|
|
# Move to top level directory
|
|
|
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
|
|
|
cd "$(dirname "$REAL_PATH")/.."
|
|
|
|
|
|
|
|
. tools/validate-docker-execute
|
|
|
|
|
2015-08-31 04:14:17 +00:00
|
|
|
IMAGES=`docker images -a -q`
|
|
|
|
if [[ -z "$IMAGES" ]]; then
|
|
|
|
echo "No images to cleanup, exit now."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
docker rmi $@ $IMAGES
|