Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean other caches also, e.g. build cache #316

Open
anders-b-jansson opened this issue Jul 15, 2024 · 1 comment
Open

Clean other caches also, e.g. build cache #316

anders-b-jansson opened this issue Jul 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@anders-b-jansson
Copy link

Description
Not only the image cache occupies storage space. Make it possible to configure cleaning of also the other types of caches. I don't know to what extent the LRU logic can be used for those entities, but some kind of kept together cleaning would be nice.
One alternative would be to set a limit per type, another alternative to set an aggregate limit.

Alternatives considered
Run various docker prune commands on schedule - but why not let docuum handle it all, when it handles image cache cleaning so well?

Additional context
If using docker for not only running but also building, then you may end up in a situation like this:

prompt$  docker system df
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          150       1         100.9GB   98.32GB (97%)
Containers      1         1         0B        0B
Local Volumes   0         0         0B        0B
Build Cache     3493      0         267.6GB   267.6GB

Here I have an image limit set, which docuum keeps below 100 G, but the build system using this environment overshadows it.

@anders-b-jansson anders-b-jansson added the enhancement New feature or request label Jul 15, 2024
@stepchowfun
Copy link
Owner

Hi @anders-b-jansson, thank you for filing this feature request! I think Docuum should do this, and I'd be happy to review a PR for it if anyone has time (but please loop me in on the design).

Related: #68, #271

(I might end up closing this or one of the other issues to deduplicate them.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants