Replies: 13 comments
-
@mhjacks thanks for reporting this. I deleted my previous comment since it was wrong |
Beta Was this translation helpful? Give feedback.
-
I ran the In In Now, I'm not sure |
Beta Was this translation helpful? Give feedback.
-
It certainly worked before 4.8.0 (e.g. for 4.6.x for sure), but I don't remember whether it worked on 4.7.2 specifically. When I specify the UID in the quadlet (344800018 in my case) the container starts, but I get a different error from inside the container:
Previously, the various hostdirs that were mounted worked fine - I was able to write files to them, and they were owned by |
Beta Was this translation helpful? Give feedback.
-
@ygalblum depending on the feedback from @mhjacks , can I assume you will handle this one given it looks like you did the legwork already ? |
Beta Was this translation helpful? Give feedback.
-
@baude I don't know yet since I'm still not sure if this is a Quadlet or Podman issue. I can keep track of it for now until we have a better view on where the issue is. |
Beta Was this translation helpful? Give feedback.
-
I should mention - I get the same errrors with
Using the podman user I get the reported error on the command line:
|
Beta Was this translation helpful? Give feedback.
-
Downgrading to podman 4.7.0 (which was the convenient thing to do for me, this is the ExecStart that it generates, and the container and service start, but fail pretty quickly upon running (this seems to be changes internal to the container and not obviously something to do with podman):
It appears to me that podman is trying to start the container (as it should) and there are further problems inside that I need to t/s further. But podman should NOT be failing to look up the user, I would think. |
Beta Was this translation helpful? Give feedback.
-
So this looks like the |
Beta Was this translation helpful? Give feedback.
-
No, it doesn't. You're supposed to be able to inject your own notion of UID/GID via environment variable (e.g. ARM_UID, ARM_GID). There may be other problems with the image - but it certainly appears that podman is complaining about not finding podman in /etc/passwd, right? |
Beta Was this translation helpful? Give feedback.
-
--user lookups the name in the image, never the hosts /etc/passwd so it is totally normal that podman errors as the user does not exists in the image. |
Beta Was this translation helpful? Give feedback.
-
Really? I did not realize that. I thought that was a host-side lookup. And the way I was using it seems to have only worked accidentally, based on what Ygal said above |
Beta Was this translation helpful? Give feedback.
-
Yes --user always searches the containers /etc/passwd, so that it sets the UID/GID map. You could try playing with Although I am not sure which happens first. |
Beta Was this translation helpful? Give feedback.
-
I'm completely up and running now - I removed the User= key from the quadlet. The "infuence" of the host FS is handled by the environment vars. The issue was my understanding of what "user" meant to quadlet/podman - I thought it was a sort of "su" mechanism for the host when running rootfully. Thanks for the explanation and advice! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
In Podman <= 4.7.2, having a
User=podman
stanza in my X-Container section for quadlet resolved the userid correctly and the container ran. Since the upgrade to podman 4.8.0 on December 1, I get the following error in my logs:Dec 01 08:20:20 srv-hv-4.imladris.lan arm[964]: Error: unable to find user podman: no matching entries in passwd file
. The exact ID setup worked previously with podman 4.7.2 and earlier versions.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
container fails to run on start, for example (this error seems to be coming from podman):
Dec 01 08:20:20 srv-hv-4.imladris.lan arm[964]: Error: unable to find user podman: no matching entries in passwd file
Describe the results you expected
arm container starts and runs
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
My quadlet:
Beta Was this translation helpful? Give feedback.
All reactions