Replies: 4 comments 6 replies
-
Some more info with debug:
I also have a minimal reproducer here using this Dockerfile:
Running this command I get the failure:
|
Beta Was this translation helpful? Give feedback.
-
Could it be that you're hitting https://bugzilla.redhat.com/show_bug.cgi?id=2382662, that is, that you had https://src.fedoraproject.org/rpms/shadow-utils/c/e1cfa31731cd68aa2d76ebfb3142037d16d3bb1e applied at the time you created the |
Beta Was this translation helpful? Give feedback.
-
No that is unrelated most likely. The issue here is you are trying to run podman withing podman which is complex and requires special setup to get it to work. You have subuid mappings on the host for th eusr which is why you can use it normally and run build. However if you try to use podman within podman the build container would also need mappings defined inside for the user in the build container. As for configuring podman to run within a container see https://www.redhat.com/en/blog/podman-inside-container In any case I don't see a bug here so I move it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Did you manage to get this to work end-to-end ? I am facing a similar issue and I have already spent hours searching for a solution... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
I know this issue has been seen before, but none of the solutions seem to fit the problem I am having.
I am running on Fedora 42
I am trying to do a podman build using the command:
$ podman build --authfile ./pull-secret.json --secret id=my_pull_secret,src=./pull-secret.json -t my-iso-builder:latest -f Dockerfile
The Dockerfile executes a script which does a
podman run
in order to create an ISO. This is the command in the script:$ podman run --authfile "${PULL_SECRET_FILE}" --rm -it --privileged --pull newer --net=host -v "${appliance_work_dir}"/:/assets:Z "${appliance_image}" build live-iso --log-level debug
When the podman in the script runs I get the error:
My uids should be adequate, but its very possible there is an issue here:
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Podman build fails with uid error as above
Describe the results you expected
Podman build succeeds.
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
$ cat /etc/redhat-release
Fedora release 42 (Adams)
Additional information
I don't get the issue if I run
sudo podman build
, however this results in various other problems that I started to debug but thought I would focus on this uid issue first.Thank you for any help.
Beta Was this translation helpful? Give feedback.
All reactions