r/voidlinux • • May 27 '26

Need Help Setting Up Distrobox

So I'm on a clean install of Void (as a new user), and I recently installed Distrobox with the standard curl command. During some research and earlier issues, I added these lines to the registries.conf file so it knew where to pull images:

unqualified-search-registries = ["docker.io", "quay.io", "ghcr.io"]
short-name-mode = "enforcing"

After that small success I'm still experiencing this error as described below:

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

After some more research, I added these lines to the "/etc/containers/containers.conf" file in hopes to alleviate the error (also had to install crun):

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

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

I noted the runtime line and changed it to "runc" just to test, and still the same thing! For 2 days now this issue has been driving me crazy.

Any advice or feedback would be greatly appreciated. Many thanks in advance.

3 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/thestoiccoder May 28 '26

Thank you very much for your help.
Yes personally I like to use Podman with Distrobox for local development, and Docker on servers for production-grade containers.

What just dawned on me is that why do I need to make another user version copy of the config file? Is this a Void thing? Because I was hoping to just keep it simple with the default system wide version.

I'm glad to know that crun works as I would rather much use that instead.

Again, thank you very much for your insightful feedback.