Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Force removal of container and image.
Chris Bynum committed Aug 12, 2016
1 parent 01f15da commit a7e0504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/destroy.sh
@@ -5,6 +5,6 @@ source common.bash .
result=$(docker ps -a | grep $maintainer/$imagename)

if [ ! -z "$result" ]; then
docker rm $(docker ps -a | grep $maintainer/$imagename | awk '{print $1}')
docker rmi $maintainer/$imagename
fi
docker rm -f $(docker ps -a | grep $maintainer/$imagename | awk '{print $1}')
docker rmi -f $maintainer/$imagename
fi

0 comments on commit a7e0504

Please sign in to comment.