-
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
Fix file mode bug #618
Fix file mode bug #618
Conversation
b3996c7
to
d613038
Compare
d613038
to
da80e15
Compare
I updated the code to fix file mode for sticky bit on directories too. |
Would you mind adding a Dockerfile that reproduces this to the integration/dockerfiles directory as well? That way we can check that it keeps working in a real-world example. |
beedca9
to
aee37b0
Compare
@dlorenc I added the Dockerfile 👍 |
Oops, the Dockerfile I added has one odd line... Let me remove it and update the PR. |
aee37b0
to
063b8aa
Compare
I now realized |
I had an issue that I cannot
sudo
on a Docker image built with kaniko. I got the following error.After a long investigation, I found it happened when I built an image over kaniko cache and the
setuid
bit can be removed bychown
. You can check this behavior by the following steps.It seems the syscall behavior, but at least the fix of this PR works.
You can see this behavior in kaniko by a Dockerfile like below.