buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

Add cache cleanup option to local cache exporter

Open MarcelCoding opened this issue 5 years ago • 7 comments

Implemented an option to remove old versions of a newly created image and images older than a specified time.

Reason/Usecase: https://github.com/docker/build-push-action/issues/252 My temporarily solution: https://github.com/docker/build-push-action/issues/252#issuecomment-744400434

MarcelCoding avatar Dec 14 '20 14:12 MarcelCoding

BuildKit doesn't have an image store. For cleaning up build cache there is buildctl prune (docker buildx prune)

tonistiigi avatar Dec 15 '20 00:12 tonistiigi

@tonistiigi It's about the local cache exporter. Atm caches are copied over the existing cache so it keeps growing (#1850).

crazy-max avatar Dec 15 '20 06:12 crazy-max

Is there any progress on this option?

CMonoceros avatar Mar 22 '21 06:03 CMonoceros

https://github.com/docker/buildx/pull/535 has been merged now, I think https://github.com/moby/buildkit/pull/1974 is still WIP.

Niek avatar Apr 12 '21 12:04 Niek

Any news?

lexfrei avatar Oct 13 '21 08:10 lexfrei

It's been over 2 years, is there any news about this issue?

demartis avatar Nov 15 '23 11:11 demartis

rreckonerr avatar Jun 05 '24 12:06 rreckonerr

LGTM 👍 💯

acidobinario avatar Dec 11 '24 02:12 acidobinario