systemd-nspawn

Spawn a command or OS in a lightweight container. More information: https://www.freedesktop.org/software/systemd/man/latest/systemd-nspawn.html.

systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}}

systemd-nspawn {{[-b|--boot]}} {{[-D|--directory]}} {{path/to/container_root}}

systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}} {{[-a|--as-pid2]}}

systemd-nspawn {{[-M|--machine]}} {{container_name}} --hostname {{container_host}} {{[-D|--directory]}} {{path/to/container_root}}