Skip to content

Commit 43ea833

Browse files
Merge pull request #26742 from aesteve-rh/fix-doc
doc(podman-system.unit.5.md): clarify user/group
2 parents f6c72ff + ca3347c commit 43ea833

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/source/markdown/podman-systemd.unit.5.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ This key can be listed multiple times.
554554
The (numeric) GID to run as inside the container. This does not need to match the GID on the host,
555555
which can be modified with `UserNS`, but if that is not specified, this GID is also used on the host.
556556

557+
Note: when both `User=` and `Group=` are specified, they are combined into a single `--user USER:GROUP`
558+
argument passed to Podman. Using `Group=` without `User=` will result in an error.
559+
557560
### `GroupAdd=`
558561

559562
Assign additional groups to the primary user running within the container process. Also supports the `keep-groups` special flag.
@@ -968,6 +971,9 @@ The default paths that are read-only are /proc/asound, /proc/bus, /proc/fs, /pro
968971
The (numeric) UID to run as inside the container. This does not need to match the UID on the host,
969972
which can be modified with `UserNS`, but if that is not specified, this UID is also used on the host.
970973

974+
Note: when both `User=` and `Group=` are specified, they are combined into a single `--user USER:GROUP`
975+
argument passed to Podman.
976+
971977
### `UserNS=`
972978

973979
Set the user namespace mode for the container. This is equivalent to the Podman `--userns` option and

0 commit comments

Comments
 (0)