Skip to content

How to prevent pulling for COPY --link --from=image-with-one-layer / / ? #2997

Answered by skirsten
skirsten asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • I would love if a optimization for the specific COPY --link --from=image-with-one-layer / / could be added. But I get that its a niche feature.
  • The workaround for me was to import a second cache that contains the same --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.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@tonistiigi
Comment options

@skirsten
Comment options

@tonistiigi
Comment options

@skirsten
Comment options

@tonistiigi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by skirsten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants