systemd-nspawn

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

Debian Debian
RUN apt-get update && \ apt-get install -y systemd-container
Ubuntu
RUN apt-get update && \ apt-get install -y systemd-container
Arch Arch Linux
RUN pacman -S --noconfirm systemd
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y systemd-container
CentOS
RUN yum install -y systemd
Fedora
RUN dnf install -y systemd-container
Raspbian
RUN apt-get update && \ apt-get install -y systemd-container
click the source code to copy install systemd-nspawn on any operating system with command-not-found.com