-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
container does not start because of systemd support for managing cgroups is not available
#1534
Comments
Hm. It looks like 18.04 should have systemd as PID1, so I'm confused as to why it can't find it... Can you verify that your init is systemd? If For now, you can create |
This could potentially be a permissions issue or similar. I'll see if I can reproduce later. |
Oh, one more thing: is this running as rootless? Or with root? |
it runs as root |
Going to take a look into this today |
Alright, I can reproduce. Systemd is definitely running, so we may not have permission to talk to it over dbus? |
Nevermind, it's an error in the instructions. |
Confirmed. Building runc without static works perfectly. |
@mheon yep after removing the
|
Going to reopen because of the rootless issue. I suspect it might be missing kernel patches, though - we have a few included in Fedora for rootless that haven't made it into mainline, last I checked. |
I have Fedora 28 updated to kernel v4.18.13-200 and I still get the error "error creating libpod runtime: exit status 1" when executing podman as a regular user. |
You will not be able to run systemd as a container in non root, because it expects to be able to manage the cgroup and usernamespace and cgroups are not supported together at this time, and we have no means of mounting a cgroup file system in user namespace. |
Can we expect that systemd will ever work in rootless? Judging by your comment @rhatdan that would require some heavy kernel namespace work or systemd would have to be able to give up cgroup management in a container. |
There is a possibility that it will be workable once V2 CGroups are ready for use with containers, but I don't know exactly when that will happen, or whether it will require additional work to get allow systemd to use the CGroup delegation allowed by V2 |
So, for now, this has to be closed to allow further work on systemd? opencontainers/runc#654 |
Does podman require systemd, or is there a way to run podman on an alternative init system? |
For CGroup management, you can set Podman to use the cgroupfs driver
instead of the systemd one, which should let us run on systems without
systemd as PID1. I don't think we have any specific requirement for an init
system otherwise
…On Tue, Nov 27, 2018, 02:52 Kyle Nusbaum ***@***.*** wrote:
Does podman require systemd, or is there a way to run podman on an
alternative init system?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1534 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYHCGyqtP29nOq2XKPi0ljOXFZ3ic-bks5uzO9HgaJpZM4W3A3p>
.
|
Correct there should be no requirement for systemd if you change to using cgroupfs. If there is, then it is a bug. |
Thanks. Not to derail the thread, but does cgroupfs only work as root user? I can launch stuff with podman as root with |
Should work everywhere - systemd is the one that has issues as non-root. It's probably another issue with rootless Podman. |
Until we have delegation of cgroups systemd will only work as root. |
BUG REPORT:
[//]: # Uncomment only one, leave it on its own line:
[//]: kind bug
[//]: # kind feature
Description
When I run podman on a fresh installed ubuntu 18 then I get the following error.
Command:
Error:
Steps to reproduce the issue:
Setup droplet
doctl compute droplet create secrets --region fra1 --image ubuntu-18-04-x64 --ssh-keys 7008657,13468054 --size s-4vcpu-8gb --wait --enable-private-networking
Build Podman as desribed in readme
run the command
Describe the results you received:
Describe the results you expected:
I expect a running container
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: