da68e2eccc
Closes-Bug: #1490387 Change-Id: I4a9476085b9c5b2cae3801e5b1954e85068f4e03
15 lines
313 B
Bash
Executable File
15 lines
313 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
IMAGES=`docker images -a -q`
|
|
if [[ -z "$IMAGES" ]]; then
|
|
echo "No images to cleanup, exit now."
|
|
exit 0
|
|
fi
|
|
docker rmi $@ $IMAGES
|