Permission denied, rootless with overlays (selinux disabled) #3672
Replies: 8 comments 1 reply
-
λ cat /etc/subuid
rick:100000:65536
λ cat /etc/subgid
rick:100000:65536 |
Beta Was this translation helpful? Give feedback.
-
I just attempted to run the above buildah command with sudo, and achieved the same results.
|
Beta Was this translation helpful? Give feedback.
-
@flouthoc PTAL |
Beta Was this translation helpful? Give feedback.
-
@rrichardson Final command which made it work for me. My Containerfile FROM --platform=linux/amd64 docker.io/node:16.13-alpine
RUN apk update && apk add --no-cache shadow
RUN addgroup -S ultron && adduser -S ultron -G ultron
RUN chown -R ultron:ultron /base/.yarn
RUN ls -la
WORKDIR /base
USER ultron
RUN ls -la ./.yarn
RUN "echo" foo > .yarn/myfile |
Beta Was this translation helpful? Give feedback.
-
@flouthoc - Oh this is excellent. I now see that option in the Thanks! |
Beta Was this translation helpful? Give feedback.
-
@rhatdan - If it is possible to convert this to a discussion item, it seems like it'd be a great bit for a FAQ of sorts. |
Beta Was this translation helpful? Give feedback.
-
I don't see any option to convert this into discussion or probably I don't know. @rhatdan Do you know how could we convert this into discussion. Anyways @rrichardson I think github issues are very |
Beta Was this translation helpful? Give feedback.
-
@rrichardson @flouthoc I've transferred this issue to a discussion. Aditya, at least on my GItHub page for the issues, there's a "Convert to Discussion" link in the right sidebar of the issue's page. Clicking on that moved this here. |
Beta Was this translation helpful? Give feedback.
-
Description
Accessing files from a mounted overlay directory within a container results in EACCESS errors.
This seems very similar to #3136 but that was closed without any resolution that I was able to glean.
Also there is #1731 but I have verified that my system has the recommended configuration, as far as I can tell.
Another thing I notice, is that I chown -R the directory to the user I create within the container, but upon running
ls
afterwards, the files still appear to be owned byroot
even though chmod -R "succeeded"On a fresh Fedora 35 installation. SELinux Disabled, /etc/containers/* is stock.
Attempting to run this command:
Fails when the script attempts to open a file within a mounted directory
Steps to reproduce the issue:
Describe the results you received:
Note that it doesn't complain about
chown -R ultron:ultron
Describe the results you expected:
Return of 0
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:Beta Was this translation helpful? Give feedback.
All reactions