Skip to content

Commit

Permalink
Refinement to container cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Buch committed Sep 27, 2018
1 parent 2ce2b2b commit eff7b14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/assert-examples
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ __check_evaluation() {
}

__clean_up_containers() {
docker ps | awk '/ (hours|days)/ { print $NF }' |
docker ps --no-trunc --format='{{.RunningFor}}:{{.ID}}' |
awk -F: '/ (hour|hours|day|days) / { print $2 }' |
while read -r cid; do
docker rm -f "${cid}"
done
Expand Down

0 comments on commit eff7b14

Please sign in to comment.