add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,20 @@
# systemd-nspawn
> 在轻量级容器中启动命令或操作系统。
> 更多信息:<https://www.freedesktop.org/software/systemd/man/latest/systemd-nspawn.html>。
- 在容器中运行命令:
`systemd-nspawn --directory {{path/to/container_root}}`
- 在容器中运行完整的基于 Linux 的操作系统:
`systemd-nspawn --boot --directory {{path/to/container_root}}`
- 使用存根 init 进程在容器中将指定命令作为 PID 2 运行(而不是 PID 1
`systemd-nspawn --directory {{path/to/container_root}} --as-pid2`
- 指定机器名称和主机名:
`systemd-nspawn --machine={{container_name}} --hostname={{container_host}} --directory {{path/to/container_root}}`