CmdID

CmdID / Commands

systemd-nspawn

Spawn a command or OS in a lightweight container. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Run a command in a container

systemd-nspawn --directory path/to/container_rootIdentify

Run a full Linux-based OS in a container

systemd-nspawn --boot --directory path/to/container_rootIdentify

Run the specified command as PID 2 in the container (as opposed to PID 1) using a stub init process

systemd-nspawn --directory path/to/container_root --as-pid2Identify

Specify the machine name and hostname

systemd-nspawn --machine container_name --hostname container_host --directory path/to/container_rootIdentify