Skip to content
Snippets Groups Projects
cleanup-images 316 B
Newer Older
  • Learn to ignore specific revisions
  • # 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.sh
    
    IMAGES=`docker images -a -q`
    if [[ -z "$IMAGES" ]]; then
        echo "No images to cleanup, exit now."
        exit 0
    fi
    docker rmi $@ $IMAGES