Skip to content

Commit

Permalink
Reapply "chore: garbage collect now, not in 3 days (#153)" (#154)
Browse files Browse the repository at this point in the history
This reverts commit 4582df6.
  • Loading branch information
emosbaugh committed Oct 9, 2024
1 parent 32f12b8 commit ede363e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion registry/garbage-collect.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/sh

echo "Script started"

while true; do
sleep 72h # every 3 days
echo "Starting garbage collection..."
registry garbage-collect /etc/docker/registry/config.yml || true
echo "Garbage collection finished"
sleep 72h # every 3 days
done

0 comments on commit ede363e

Please sign in to comment.