Skip to content

Commit c0fec69

Browse files
authored
chore: garbage collect now, not in 3 days (#153)
1 parent b7ab57f commit c0fec69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

registry/garbage-collect.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/sh
22

3+
echo "Script started"
4+
35
while true; do
4-
sleep 72h # every 3 days
56
echo "Starting garbage collection..."
67
registry garbage-collect /etc/docker/registry/config.yml || true
8+
echo "Garbage collection finished"
9+
sleep 72h # every 3 days
710
done

0 commit comments

Comments
 (0)