docs: quadlet: improve docs on root/rootless dirs

Make the docs more explicit on which directories are read for root and
rootless users to avoid confusion [1].

[1] https://github.com/containers/podman/discussions/20218#discussioncomment-8721351

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2024-03-11 09:00:43 +01:00
parent 76578e1b53
commit 3d6758a61d
1 changed files with 6 additions and 2 deletions

View File

@ -8,12 +8,16 @@ podman\-systemd.unit - systemd units using Podman Quadlet
*name*.container, *name*.volume, *name*.network, *name*.kube *name*.image, *name*.pod
### Podman unit search path
### Podman rootful unit search path
Quadlet files for the root user can be placed in the following two directories:
* /etc/containers/systemd/
* /usr/share/containers/systemd/
### Podman user unit search path
### Podman rootless unit search path
Quadlet files for non-root users can be placed in the following directories
* $XDG_CONFIG_HOME/containers/systemd/ or ~/.config/containers/systemd/
* /etc/containers/systemd/users/$(UID)