-
Notifications
You must be signed in to change notification settings - Fork 2k
Documentation for builder prune. #2864
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2864 +/- ##
=======================================
Coverage 57.08% 57.08%
=======================================
Files 297 297
Lines 18642 18642
=======================================
Hits 10642 10642
Misses 7141 7141
Partials 859 859 |
@thaJeztah @tiborvass PTAL |
@tiborvass PTAL 🤗 |
oh, and probably @tonistiigi ptal |
@tonistiigi @thaJeztah Could you PTAL? |
@docker/build PTAL |
Nice docs! Looking at #3314, I wonder if this should not be moved to https://github.com/docker/buildx/blob/master/docs/reference/buildx_prune.md? |
@crazy-max Agree for the prune command. For the garbage collection, maybe somewhere around https://docs.docker.com/engine/reference/commandline/dockerd/ but @thaJeztah knows better. |
So docker try to remove the cache that is less likely to be used in future builds to keep builds as fast as possible while maintaining cache size under control. | ||
|
||
**Note** | ||
>Pruning does not works if the Total is below what you specified as keep storage option to prune. It needs to go above, we are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misspelled "works". Should be "does not work if".
I don't really understand last example.
If we already deleted every unused build cache that's more than 92 days old, there should not be any caches left which are more than 136 days old. It's confusing. |
Looks like the GC docs are now already mostly covered on this page in docs; https://docs.docker.com/build/cache/garbage-collection/ Would be nice to merge the description for prune though. |
} | ||
} | ||
``` | ||
The garbage collection config file can be created incase you dont have one located in your `etc/docker` folder, and if you do have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be 'in case' instead of 'incase' here?
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2864 +/- ##
=======================================
Coverage 57.08% 57.08%
=======================================
Files 297 297
Lines 18642 18642
=======================================
Hits 10642 10642
Misses 7141 7141
Partials 859 859 |
Why is this not merged yet ? |
08unho1rnguz regular 2.38MB 13 days ago 13 days ago 1 false | ||
i8nfk2fvpyyi regular 0B 2 weeks ago 13 days ago 2 false | ||
|
||
$ docker builder prune --filter until=24h # to remove builder cache with a filter or 24 hours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be "with a filter of 24 hours"
Signed-off-by: adeniyistephen <adeniyistadz@gmail.com>
Signed-off-by: adeniyistephen <adeniyistadz@gmail.com>
Signed-off-by: adeniyistephen <adeniyistadz@gmail.com>
a2716e2
to
c1a1bb2
Compare
Thanks @vbezhenar cleaned up and a more clearer version. |
- What I did
Documentation of builder prune with its inputs and examples for #2325
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)