-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Kaniko ADD instruction not preserve permissions via chmod argument #2850
Comments
Hello, thanks |
Thanks for catching this. This is essentially a |
@JeromeJu thank you a lot |
Does this also affect |
Yeah, I ran into this using `COPY` yesterday.
…On Thu, 16 Nov 2023, 02:40 robross0606, ***@***.***> wrote:
Does this also affect COPY commands?
—
Reply to this email directly, view it on GitHub
<#2850 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIKCVKQETZNWPHXWNZSXI3YEUEC3AVCNFSM6AAAAAA7JHIJMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGA3DOOBUHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@robross0606, yes. Kaniko output:
Dockerfile
|
Issue #1751 is a feature request to add the --chmod arg to the COPY command. Is this issue actually a feature request? |
I've encountered this bug as well, and I've found a helpful workaround to address it: When making changes to permissions within a directory, such as using E.g. if your Dockerfile initially looks like this:
Change it to this, so the last operation that is performed in the directory is
While not an ideal solution, this workaround proves effective in managing the issue until the root cause is resolved, considering that there are several open issues currently related to this. |
Actual behavior
ADD Dockerfile instruction not preserve permissions with chmod argument usage.
Expected behavior
ADD Dockerfile instruction with chmod argument preserve permissions
To Reproduce
Steps to reproduce the behavior:
Additional Information
Directory with Dockerfile above only
File from ADD instruction - https://github.com/GoogleContainerTools/kaniko/blob/main/benchmark.sh
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: