Skip to content

GC policies do not mention how often pruning is done or how it works. #18826

@Strawl

Description

@Strawl

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

In the docs the following is stated:

While docker builder prune or docker buildx prune commands run at once, garbage collection runs periodically and follows an ordered list of prune policies.

But no where in the docs is it stated, how often this period is and I would have to assume it is not configurable.

Furthermore, what is
"defaultKeepStorage": "10GB" referring to? Is this the threshold at which the pruning will start?

Keep Bytes defaults to 10% of the size of the disk. If the disk size cannot be determined, it uses 2GB as a fallback.
What is this Keep Bytes referring to? Is this the default for the defaultKeepStorage variable?

I read also a documentation on the topic that was never merged in: docker/cli#2864
This proposed new documentation attempted to explain how these policies work, which i find goes into the right direction, but it still left me confused. I can create list of all these inconsistencies that i have found and which i do not understand.

Location

https://docs.docker.com/build/cache/garbage-collection/

Suggestion

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions