[CI:DOCS] Add note about QUADLET_UNIT_DIRS to simplify quadlet debug

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2023-07-24 10:17:16 +03:00
parent 5dd8906e71
commit cb5450af70

View File

@ -83,6 +83,18 @@ View the generated files and/or error messages with:
/usr/lib/systemd/system-generators/podman-system-generator {--user} --dryrun
```
#### Debugging a limited set of unit files
If you would like to debug a limited set of unit files, you can copy them to a separate directory and set the
`QUADLET_UNIT_DIRS` environment variable to this directory when running the command below:
```
QUADLET_UNIT_DIRS=<Directory> /usr/lib/systemd/system-generators/podman-system-generator {--user} --dryrun
```
This will instruct quadlet to look for units in this directory instead of the common ones and by
that limit the output to only the units you are debugging.
## Container units [Container]
Container units are named with a `.container` extension and contain a `[Container]` section describing