Open spanezz opened 1 year ago
https://wiki.archlinux.org/title/systemd-nspawn#Unprivileged_containers
systemd-nspawn supports unprivileged containers, though the containers need to be booted as root.
https://github.com/systemd/systemd/issues/10680 explains that this can be done using machinectl
and systemd-machined
, but it still requires polkit configuration, and would need to implement a different way to run tasks in the container
Alternatively, we can add a backend using libvirt, along the lines of debvm, and then run tasks in it with something like mitogen
It may be possible to run enough containerization without needing root. It's worth at least investigating