Skip to content

Commit

Permalink
docker-registry: add cron for delete untag images
Browse files Browse the repository at this point in the history
Signed-off-by: Login Victor <batazor111@gmail.com>
  • Loading branch information
batazor committed May 11, 2021
1 parent 14f214b commit 20c56a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ops/docker-compose/tooling/docker-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ services:
volumes:
- /data/registry:/data:Z
- ./ops/cert/gitlab:/certs:Z
- ./ops/docker-compose/tooling/registry/cron:/etc/crontabs/root:Z
8 changes: 8 additions & 0 deletions ops/docker-compose/tooling/registry/cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
0 0 * * * registry garbage-collect -m=true /etc/docker/registry/config.yml

0 comments on commit 20c56a0

Please sign in to comment.