Skip to content

Commit cb061cd

Browse files
authored
Prune based on minutes
1 parent 1681824 commit cb061cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mybinder/templates/buildkit-pruner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
- /bin/sh
2727
- -c
2828
- |
29-
docker image prune --force --all --filter until={{ .Values.buildkitPruner.olderThanHours }}h && \
29+
docker image prune --force --all --filter until={{ .Values.buildkitPruner.olderThanMinutes }}m && \
3030
docker builder prune --force --all --keep-storage={{ .Values.buildkitPruner.buildkitCacheSize }} && \
3131
docker system df
3232
volumeMounts:

mybinder/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildkitPruner:
1515
image: docker:27.5.1-dind
1616
buildkitCacheSize: 300GB
1717
# Only prune images older than
18-
olderThanHours: 2
18+
olderThanMinutes: 120
1919
# Run this every 5min
2020
schedule: "*/5 * * * *"
2121

0 commit comments

Comments
 (0)