Replies: 3 comments 1 reply
-
It would be easier to help troubleshoot this if you included the specific error messages and logs produced when something fails, perhaps with the |
Beta Was this translation helpful? Give feedback.
-
The error is actually when I am doing yum update on the official rockylinux:9, it has to upgrade the filesystem package: Running scriptlet: setup-2.13.7-10.el9.noarch 6/189 Upgrading : basesystem-11-13.el9.0.1.noarch 8/189 And then we have two thoughts:
I have some suspicion that it has to extract files to /dev, and how the mounted filepath got into this issue I tried loglevel=debug and it spits out quite a bit of info |
Beta Was this translation helpful? Give feedback.
-
interesting, trying to compare the two: podman run podman build so the /dev being owned by "nobody" seems to be the culprit? |
Beta Was this translation helpful? Give feedback.
-
We have a very specific scenario around building images based out from rockylinux, version 9
Just for the current time being, one of the component coming in with yum -y update, have files needing to be extracted to system directory like dev.
We have a container at k8s that we run podman to build images, and then it fails just for this round of yum update (it's been working fine for a long while). We tested different scenarios, and came to this point that, if we build the Dockerfile (USER root), it will fail (just a normal podman build -t testimage:test .)
If we just do
podman run --rm rockylinux:9 yum update -y
then it works
I have a suspicion around user not being elevated (or mapped) properly when the image is being built (when the RUN is run). Have you guys hit this kind of issue before?
[podman@container-builder-8596878565-fg2lb /]$ podman version
Client: Podman Engine
Version: 4.9.4
API Version: 4.9.4
Go Version: go1.21.8
Built: Tue Mar 26 09:39:52 2024
OS/Arch: linux/amd64
[podman@container-builder-8596878565-fg2lb /]$ podman unshare cat /proc/self/uid_map
0 1000 1
1 1 999
1000 1001 64535
65535 100000 564700753
Beta Was this translation helpful? Give feedback.
All reactions