Skip to main content
Topic: Podman rootless can't run init systems inside of container (Cgroup error?) (Read 45 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Podman rootless can't run init systems inside of container (Cgroup error?)

So, I'm currently running the Distrobox project on my Artix host device with s6. Distrobox is using Podman as a container host, because I very much enjoy the daemonless, rootless approach to containers which it presents.

I make my distroboxes with the --init flag, since I'm wishing to use some SystemD services within those containers for the sake of it. I'm also prodding about with Waydroid, and Distrobox offers a quick solution for a persistent Waydroid container.

Whenever I try to run the containers, everything goes perfectly alright, up to the final stage of the container's launching. This error pops up:

Code: [Select]
Failed to create /init.scope control group: Permission denied
Failed to allocate manager object: Permission denied
[!!!!!!] Failed to allocate manager object.

It looks to me like there's problems with the creation of Cgroups for Podman. I have searched for months, and found no solution. When running it as root with the Distrobox --root flag, it works perfectly; however I wish to be able to launch these without having to re-enter my password, seamlessly; and I don't want to be running my containers with root.

What could I possibly do to fix this?