-
Notifications
You must be signed in to change notification settings - Fork 784
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
podman build with secret meet permission error, while podman run with secrets is ok. #4228
Comments
Questions (if it is not a bug)
|
I verified it using tmpfs for this (this VM is podman 3.4.2) Start with
Now, I enable it and verified again
so do we have any document for this, and it will be good to show correct error msg when using => |
@rhatdan do u have time to give me help to comment this? |
Hmm I am curious cause I think i have |
it works for BTW: my VM has sudo permission is podman 3.4.2 |
could you temporarily drop the |
for the issue I reported, so far I don't have permission to change (RHEL8/Podman 4.1). But I use tmpfs to reproduced it in another RHEL8/Podman 3.4.x, see my comments above. |
my suggestion was to make sure it is really about Are you using |
|
could you try changing OCI runtime? Do you get any error if you try |
It looks like the runtime is trying to ensure that the bind mount to the secret is |
@giuseppe good, this works
BTW: I copied
I copied latest release |
Thank you so much @nalind @giuseppe @rhatdan ! Since RHEL8/podman is delivered with And I recommend to
|
crun is available to RHEL8 users, we just can not change the default during a RHEL8 run. RHEL9 defaults to crun. Please open a PR to modify the troubleshooting guide. |
Thank, close now. if there is a PR, I will link it here. |
I stumbled across the same issue and opened a PR to add the information covered here to the podman docs at containers/podman#18878. PTAL. |
Add a section to the troubleshooting guide describing how to get secret mounts working in an environment with nosuid-mounted file systems and runc, such as RHEL8, as discussed in containers/buildah#4228. Signed-off-by: Philipp Wagner <phw@ibm.com>
podman build with secret meet permission error
I follow the example in https://www.redhat.com/sysadmin/sensitive-data-containers to build the container image using secrets and meet permission error
Steps to reproduce the issue:
Dockerfile
and touch onesecret.txt
Describe the results you received:
see above, it reports permission error
Noticed some extra info about my storage
will
nosuid
be the issue? but it works forpodman secret/run
commandDescribe the results you expected:
In other machine, the Step 2 shall report ok
Output of
rpm -q buildah
orapt list buildah
: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
:The text was updated successfully, but these errors were encountered: