Skip to content

Commit 4f49cc4

Browse files
committed
Disable image cleaner
As part of jupyterhub/binderhub#1941, I want to not port imageCleaner to the new chart. Since the image store is not really used to push anymore (since jupyterhub/repo2docker#1421) and we will be able to disregard it completely in the future, we can simply just prune the entire image store than do any complex logic here.
1 parent 2ef6b42 commit 4f49cc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mybinder/templates/buildkit-pruner.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ spec:
2626
- /bin/sh
2727
- -c
2828
- |
29+
docker image prune ---force -all && \
2930
docker builder prune --force --all --keep-storage={{ .Values.buildkitPruner.buildkitCacheSize }} && \
3031
docker system df
3132
volumeMounts:

mybinder/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ binderhub:
362362
memory: 4Gi
363363

364364
imageCleaner:
365-
enabled: true
365+
enabled: false
366366
# Use 40GB as upper limit, size is given in bytes
367367
imageGCThresholdHigh: 40e9
368368
imageGCThresholdLow: 10e9

0 commit comments

Comments
 (0)