Skip to content

Install in Void - some settings needed #1923

@DonPiotr

Description

@DonPiotr

Hi!
I put it hare to help to who need it.

  1. Install podman and crun from repos
  2. Install distrobox

At that point I had distrobox failed to work and those errors:

Error: unable to start container "...": runc: runc create failed: unable to start container process: unable to apply cgroup configuration: rootless needs no limits + no cgrouppath when no permission is granted for cgroups: mkdir /sys/fs/cgroup/...: permission denied: OCI permission denied

At the end, what worked for mi was setting /etc/containers/containers.conf to

[engine]
cgroup_manager = "cgroupfs"
runtime = "crun"

[containers]
cgroups = "enabled"
pidns = "private"
userns = "private"
netns = "private"
ipcns = "private"
utsns = "private"

I don't know if it work witk runc, and others settings.

Lastly, consider to create containers with --init .
If not, they won't stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions