You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
"A GC sweep would delete 5GB of stale cache as part of the 1st policy, with a remainder of 6GB" is wrong, should be"A GC sweep would delete 2GB of stale cache as part of the 1st policy, with a remainder of 9GB"
A GC sweep would delete 5GB of stale cache as part of the 1st policy, with a remainder of 6GB, meaning the 2nd policy does not need to clear any more cache.
I think current docs is correct:
For example, say you have the following GC policies:
Find "stale" cache records that haven't been used in the past 48 hours, and delete records until there's maximum 5GB of "stale" cache left.
If the build cache size exceeds 10GB, delete records until the total cache size is no more than 10GB.
Find "stale" cache records that haven't been used in the past 48 hours, and delete records until there's maximum 5GB of "stale" cache left.
...
...if you have 11GB worth of build cache, where:
7GB of which is "stale" cache
4GB is other, more valuable cache
So on first policy 7GB > 5GB so only 5GB is pruned: 11GB - 5GB = 6GB. Then 5GB are left in the cache so second rule doesn't apply (< 10GB).
Is this a docs issue?
Type of issue
Information is incorrect
Description
"A GC sweep would delete 5GB of stale cache as part of the 1st policy, with a remainder of 6GB" is wrong, should be"A GC sweep would delete 2GB of stale cache as part of the 1st policy, with a remainder of 9GB"
Location
https://docs.docker.com/build/cache/garbage-collection/
Suggestion
It should be should be "A GC sweep would delete 2GB of stale cache as part of the 1st policy, with a remainder of 9GB"
The text was updated successfully, but these errors were encountered: