diff options
Diffstat (limited to 'auth/docker/dclean.sh')
-rw-r--r-- | auth/docker/dclean.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index f8550674..b943d08a 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -1,6 +1,7 @@ #!/bin/bash # Pull in Variables from d.props . ./d.props +DOCKER=${DOCKER:=docker} if [ "$1" == "" ]; then AAF_COMPONENTS="$(cat components) config core agent" @@ -8,12 +9,12 @@ else AAF_COMPONENTS="$@" fi -echo "Y" | docker container prune +echo "Y" | $DOCKER container prune for AAF_COMPONENT in ${AAF_COMPONENTS}; do - docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} + $DOCKER image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} if [ ! "$PREFIX" = "" ]; then - docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} - docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest + $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} + $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest fi done -echo "Y" | docker image prune +echo "Y" | $DOCKER image prune |