Skip to content

Commit

Permalink
Keep this branch in sync with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinakar Guniguntala committed Mar 17, 2020
1 parent 65da54f commit e58b77e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ function cleanup_images() {
docker container prune -f 2>/dev/null

# Delete any old images for our target_repo on localhost.
docker rmi -f "$(docker images | grep -e 'adoptopenjdk' | awk -v OFS=':' '{ print $1, $2 }')" 2>/dev/null
for image in $(docker images | grep -e 'adoptopenjdk' | awk -v OFS=':' '{ print $1, $2 }');
do
docker rmi -f "${image}";
done

# Remove any dangling images
docker image prune -f 2>/dev/null
Expand Down

0 comments on commit e58b77e

Please sign in to comment.