3 ms·
nspawn + btrfs is my preferred solution to the "50 containers" problem. The incantation you want is: systemd-nspawn --template="/path/to/subvolume" <other
by tadfisher 10y ago
nspawn + btrfs is my preferred solution to the "50 containers" problem. The incantation you want is:
systemd-nspawn --template="/path/to/subvolume" <other args>
This creates a copy-on-write snapshot of the subvolume you supply, which is instantaneous. The --ephemeral flag can be used instead if you want the guest to be able to modify the base filesystem but you do not want those changes to persist across container boots.
Can someone describe what advantages rkt gives you over plain nspawn containers?
- ComputerGuru 10y agoProbably the fact that it doesn't rely on btrfs. (Side note: having been spoiled by zfs on FreeBSD, my btrfs experience can best be summed up as "never again.")
- ChoHag 10y agobtrfs is the only file system that's ever lost data on me.