-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COPY --link
not compatible with chown
#2987
Comments
There are some cases of chown that can't be implemented at all described in #2414 (comment)
For
Also note that some cases could be solvable with an intermediate stage. You can copy to the intermediate stage with FYI @sipsma |
Letting mastodon own its files allows it to overwrite them, which seems like a security risk. You don't expect postgres binary to be owned by postgres user, the same thing applies here. I also reordered `COPY` directive to make copy from build image cacheable. Previously `--link` was not available, but it is now: * moby/buildkit#2987
Note: I stumbled upon this when searching for issues similar to my own; not sure if this is the appropriate place, let me know if I should open a separate issue. When migrating some of my Dockerfiles to use Is this some sort of intended behavior, where A minimal example Dockerfile in which I face this issue is (using
|
Nevermind, misunderstanding
That command and I'm not familiar with Docker Desktop on Windows or usage on Windows in general. Perhaps it's using Gotcha: Current Docker Engine releases silently ignore
|
Looking up user-ids in the base-image sounds like a viable option to me. Especially, when we can do multi-layer- |
I think this issue can be closed? Unless it's intended to track Here's an overview for readers landing here:
|
Hello,
COPY --link
is really great but I think it doesn't work yet withchown
which makes inefficient layers because you have tochown
manually after copying or just keep things simple with root.Will
COPY --link
be compatible with--chown
in the future?The text was updated successfully, but these errors were encountered: