Skip to content

Commit

Permalink
exclude containers based on busybox from cleanup
Browse files Browse the repository at this point in the history
containers based on busybox are used to create storage volumes.  When busybox
containers are removed, the data can become inaccessible depending on the
release process.

AWS-196
  • Loading branch information
Patrick Boyd committed May 12, 2016
1 parent 9db4c7a commit eb56494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions files/docker-rotate
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
# Remove docker images keeping the last 3 of each type
docker-rotate images --keep 3
# Remove docker containers that have exited over an hour ago
# and were created over a day ago
docker-rotate containers --exited 1h --created 1d
# and were created over a day ago> Exclude containers based on busybox
# which are typically used for data volumes.
docker-rotate containers --exited 1h --created 1d --images ~busybox

0 comments on commit eb56494

Please sign in to comment.