Get the latest tech news
On Running systemd-nspawn Containers (2022)
I’d like to talk more about a container technology that I really like that I touched upon in a previous article: systemd-nspawn. systemd-nspawn is a container manager that allows you to run a full operating system or a command in a directory tree.
This is so untrusted or unvetted files downloaded from the scary Internet don’t cause undue harm and aren’t automatically applied upon container creation. A tool by Lennart Poettering, mkosi is an easy way to create an OSI(operating system image) or OS tree for use by systemd-nspawn and any container technology that can “consume” a root filesystem. Using the amazing command-line fuzzy finder tool ( fzf), I wrote a simple bash function that will list all of the machine images in/var/lib/machines and allow you to select one.
Or read this on Hacker News