Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-12 00:21:19 +00:00
parent 3bbcd70636
commit d902176714
130 changed files with 506 additions and 436 deletions

View File

@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
- Run a command in a container:
`systemd-nspawn --directory {{path/to/container_root}}`
`systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}}`
- Run a full Linux-based OS in a container:
`systemd-nspawn --boot --directory {{path/to/container_root}}`
`systemd-nspawn {{[-b|--boot]}} {{[-D|--directory]}} {{path/to/container_root}}`
- 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-pid2`
`systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}} {{[-a|--as-pid2]}}`
- Specify the machine name and hostname:
`systemd-nspawn --machine={{container_name}} --hostname={{container_host}} --directory {{path/to/container_root}}`
`systemd-nspawn {{[-M|--machine]}} {{container_name}} --hostname {{container_host}} {{[-D|--directory]}} {{path/to/container_root}}`