-
Pretty simple. I want to concat the single layer from one image to the existing layers of the current image. This ☝️ is working fine and its reusing the layer on the registry level (same digest). The problem is that buildkit still pulls the layer, extracts it, does the COPY and "preparing layers for inline cache". This is taking forever and I want to figure out if there is some other way to concat the manifests without pulling the layers. Otherwise I would have to manually use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
The layer is not pulled unless there is some process that actually needs to read its contents. If you are doing a build with |
Beta Was this translation helpful? Give feedback.
-
I created a issue for the second topic here: #3009 Thanks for all your help @tonistiigi . I will resolve this discussion now.
|
Beta Was this translation helpful? Give feedback.
I created a issue for the second topic here: #3009
Thanks for all your help @tonistiigi . I will resolve this discussion now.
Takeaways for the initial topic:
COPY --link --from=image-with-one-layer / /
could be added. But I get that its a niche feature.--from
image in the COPY so that it can use the cache. This reduced the number of cases where it needs to pull and prepare cache for the full image by 1/5.