Does systemd-nspawn do special inside to a chroot or does it just provide a different method of running chroot + the appropriate ro --bind mounts for proc, sys. The docs say,
similar to chroot(1), but more powerful since it fully virtualizes the file system hierarchy, as well as the process tree, the various IPC subsystems and the host and domain name
I'm not sure of how any of those are defined,
virtualizes the file system hierarchy
Isn't this what
chrootdoes changing the root?as well as the process tree
I'm not sure what this means.
various IPC subsystems
What subsystems? Can someone tell me exactly what that means?
host and domain name
I'm not sure what this means either? Isn't this just
/proc/sys/kernel/domainname, and/proc/sys/kernel/hostname
I've used chroot and mount --bind scripts. It seems like this is more convince but I'm blurry on any additional functionality. What new things does this provide to me?
systemd-nspawncan do almost the equivalent of a full boot (the init system is started, services are started according to the init config, etc.). They're pretty much containers. chroot + bind mounts are not anywhere close to being fully functional containers.