diff options
Diffstat (limited to 'auth/docker/dclean.sh')
-rw-r--r-- | auth/docker/dclean.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh new file mode 100644 index 00000000..b14f0bcc --- /dev/null +++ b/auth/docker/dclean.sh @@ -0,0 +1,14 @@ +#!/bin/bash dclean.sh +. d.props + +if [ "$1" == "" ]; then + AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'` +else + AAF_COMPONENTS=$1 +fi + +echo "Y" | docker container prune +for AAF_COMPONENT in ${AAF_COMPONENTS}; do + docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} +done +echo "Y" | docker image prune |