machinectl
Control the systemd machine manager. Execute operations on virtual machines, containers, and images. More information: https://www.freedesktop.org/software/systemd/man/latest/machinectl.html.
- Start a machine as a service using
systemd-nspawn:
sudo machinectl start
- Stop a running machine:
sudo machinectl stop
- Display a list of running machines:
machinectl list
- Open an interactive shell inside the machine:
sudo machinectl shell
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
