You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unsure about the use of COPY --link in that situation. What is the benefit of it? When I tried with or without it when using FROM scratch I did not saw any difference on a large docker image. At first I thought that --link was just an argument to preserve symlinks, then I read that it was actually trying to use hardlinks from the previous layers to avoid duplicating too much. But the previous layer needs stay in the history of the image no? Which I think can never be the case during a squash? So it feels that it will simply do nothing in the end? Or maybe I'm wrong?
Anyway, many thanks for your project. It follows a "keep it simple" philosophy, and it's super useful. You did something that docker should have implemented years ago. Thank you!!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm unsure about the use of COPY --link in that situation. What is the benefit of it? When I tried with or without it when using
FROM scratch
I did not saw any difference on a large docker image. At first I thought that --link was just an argument to preserve symlinks, then I read that it was actually trying to use hardlinks from the previous layers to avoid duplicating too much. But the previous layer needs stay in the history of the image no? Which I think can never be the case during a squash? So it feels that it will simply do nothing in the end? Or maybe I'm wrong?Anyway, many thanks for your project. It follows a "keep it simple" philosophy, and it's super useful. You did something that docker should have implemented years ago. Thank you!!
Kind regards,
Beta Was this translation helpful? Give feedback.
All reactions