We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35450f0 + cb061cd commit d919c9aCopy full SHA for d919c9a
mybinder/templates/buildkit-pruner.yaml
@@ -26,7 +26,7 @@ spec:
26
- /bin/sh
27
- -c
28
- |
29
- docker image prune --force --all && \
+ docker image prune --force --all --filter until={{ .Values.buildkitPruner.olderThanMinutes }}m && \
30
docker builder prune --force --all --keep-storage={{ .Values.buildkitPruner.buildkitCacheSize }} && \
31
docker system df
32
volumeMounts:
mybinder/values.yaml
@@ -14,6 +14,8 @@ buildkitPruner:
14
# Use the same image as we use for dind
15
image: docker:27.5.1-dind
16
buildkitCacheSize: 300GB
17
+ # Only prune images older than
18
+ olderThanMinutes: 120
19
# Run this every 5min
20
schedule: "*/5 * * * *"
21
0 commit comments