-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 2.0.1 on Fedora 32 Failed to mount tmpfs on /run: Operation not permitted #6920
Comments
Downgrade to 1.8.2:
|
To run Podman container with systemd inside, you need to pass the |
It should work as well when the entrypoint is |
@ruskofd @vrothberg It didnt work (koji's 2.0.2), getting the same error. It does work with 1.8.2 (i.e., the
|
Confirmed locally. |
Only happens with |
Adding |
I do have an AVC from systemd in the journal
|
Hm. It seems like
|
I couldn't get it to work with fedora:32 after installing the systemd RPM. The image doesn't have I can confirm that |
Aha, think I've got it. We aren't taking into account the entrypoint (only the command) when we determine if the container is running systemd - so we don't see your |
We were only using the Command field in specgen when determining whether to enable systemd if systemd=true (the default) was used. This does not include the entrypoint, and does not include any entrypoint/command sourced from the image - so an image could be running systemd and we'd not correctly detect this. Using the full, final command resolves this and matches Podman v1.9.x behavior. Fixes containers#6920 Signed-off-by: Matthew Heon <[email protected]>
We were only using the Command field in specgen when determining whether to enable systemd if systemd=true (the default) was used. This does not include the entrypoint, and does not include any entrypoint/command sourced from the image - so an image could be running systemd and we'd not correctly detect this. Using the full, final command resolves this and matches Podman v1.9.x behavior. Fixes containers#6920 Signed-off-by: Matthew Heon <[email protected]> <MH: Fixed compile after backport> Signed-off-by: Matthew Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman 2.0.1 on Fedora 32 cannot run systemd based containers
Steps to reproduce the issue:
podman run --entrypoint /sbin/init centos:8
Describe the results you received:
Describe the results you expected:
Container runs with systemd as PID 1
Additional information you deem important (e.g. issue happens only occasionally):
Works with 1.8.2
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
setenforce 0
The text was updated successfully, but these errors were encountered: