-
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
ubuntu+systemd: Failed to mount tmpfs at /run/lock: Operation not permitted #3295
Comments
Failing host:
Successful host:
|
Update: the problem host was missing I vaguely remember reading somewhere that this package was no longer required and that podman and runc together do the systemd dance. I won't close the issue immediately in case the maintainers want to chime in on Both fedora:30 and centos:7 work without this package, but ubuntu:19.04 and debian:9 seem to require it. |
Ok then this looks like a bug in either systemd inside of a container or the implementation of podman. |
Hm. |
The issue is that if /run/lock is not mounted separately, then systemd will attempt to mount it. Since mount is blocked then systemd fails. Bottom line SYSTEMD expects /run/lock to be a separate mount point. |
I am not sure if this helps or not but I got the same error trying to start a docker container and boot it with systemd as init system (PID 1) and solved that adding docker run -ti -d --privileged ubuntu:20.04 "/sbin/init" |
Run it with Podman and you have no requirement for --privileged flag. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Ubuntu 19.04 + systemd container is failing with
This happens on one Fedora 30 host, but another one runs the container with no issue.
--log-level DEBUG
and journalctl output are not sufficiently illuminating to explain why thiswould work on one host but not the other.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Container runs
Additional information you deem important (e.g. issue happens only occasionally):
and another F30 host works fine.
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: