On Running systemd-nspawn Containers (2022)
11–20 of 59 posts
Re: On Running systemd-nspawn Containers (2022)
#12Does breaking out of the container give you root?
Re: On Running systemd-nspawn Containers (2022)
#13I used nspawn to get a system running in the most ridiculous way. A debian aarch64 vm on kvm starting a systemd-nspawn for an unpacked raspberry pi 3 iso. It works way too well judging by how ridiculous it was. Still saved me a few days instead of setting things up myself. I actually liked how easy it is to spin up nspawn as a systemd service [Unit] Description=Raspberry Image Machine After=multi-user.target [Service…
hmm this is very interesting. I am wondering though? Is there something like systemd-nspawn that doesn't require root?
docker and the rootless nonsense is just root daemons and suid.
...would never have believed marketing lies would reach linux tools if anyone told me this before 2018.
Re: On Running systemd-nspawn Containers (2022)
#14Does breaking out of the container give you root?
Re: On Running systemd-nspawn Containers (2022)
#15Earlier quoted context omitted.
hmm this is very interesting. I am wondering though? Is there something like systemd-nspawn that doesn't require root?
It looks like systemd-nspawn is gaining rootless support, see https://github.com/systemd/systemd/issues/30239 Until then, I'm not sure if there is anything lightweight. If you don't need lightweight, there is Podman.
I am on a completely rootless client at one of my servers.
Re: On Running systemd-nspawn Containers (2022)
#16Earlier quoted context omitted.
hmm this is very interesting. I am wondering though? Is there something like systemd-nspawn that doesn't require root?
all containers require root. docker and the rootless nonsense is just root daemons and suid. ...would never have believed marketing lies would reach linux tools if anyone told me this before 2018.
There is podman but it requires one time root.
Re: On Running systemd-nspawn Containers (2022)
#17> Unfortunately, though, most developers don’t even know that there are options outside of Docker, or that they’re not as “convenient”. > Hopefully, this article has disabused some of that notion. If that was the goal, it seems terribly complicated when compared with podman.
Re: On Running systemd-nspawn Containers (2022)
#18Used nomad in my homelab to run nspawn containers with nspawn driver[1] Surprisingly simple and low footprint solution and genuinely pleasant to work with, since it is very similiar to managing a Systemd service. [1] https://github.com/JanMa/nomad-driver-nspawn