buildx icon indicating copy to clipboard operation
buildx copied to clipboard

`prune`: filtering out `ADD --checksum=... https://...` entries

Open fenollp opened this issue 3 months ago • 3 comments

Description

I'd like to be able to run docker buildx prune but keep in cache the pinned ADD downloads. Could we extend on the --filter=.. syntax?

Side curiosity: why are these cache entries marked Mutable: true? From my understanding of du's docs that'd mean that its size can grow.

Is there a missed optimization opportunity of in the ADD op here, setting mutable=false? cc https://github.com/moby/buildkit/issues/975#issuecomment-490586307

fenollp avatar May 07 '24 17:05 fenollp