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

buildkitd.toml.md should explain the interaction between [worker.oci] and [[worker.oci.gcpolicy]] #5538

Open
betelgeuse opened this issue Nov 20, 2024 · 0 comments

Comments

@betelgeuse
Copy link
Contributor

https://github.com/moby/buildkit/blob/ab83f87af83d0ff8e5de356812eb530fe49c6e07/docs/buildkitd.toml.md

This file could use a comment that explains the relation for gc settings under [worker.oci] and [[worker.oci.gcpolicy]]. Basically how the various gcpolicies interact with the worker level settings and what ends up being the priority between multiple policies.

  # maxUsedSpace is the maximum amount of disk space that may be used by
  # this buildkit worker - any usage above this threshold will be reclaimed
  # during garbage collection.
  maxUsedSpace = "60%"
    # maxUsedSpace is the maximum amount of disk space that may be used by this
    # policy - any usage above this threshold will be reclaimed during garbage
    # collection.
    maxUsedSpace = "1GB"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants