Skip to content

Commit

Permalink
[CI:DOCS] Add note to mappings for user/group userns in build
Browse files Browse the repository at this point in the history
Add a note to the `--userns-uid-map` and `--userns-gid-map` options in
the `podman build` man page.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1930509

Signed-off-by: TomSweeneyRedHat <[email protected]>
  • Loading branch information
TomSweeneyRedHat authored and jmguzik committed Apr 26, 2021
1 parent 6336b8c commit b048486
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/markdown/podman-build.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ If --userns-gid-map-group is specified, but --userns-uid-map-user is not
specified, `podman` will assume that the specified group name is also a
suitable user name to use as the default setting for this option.

**NOTE:** When this option is specified by a rootless user, the specified
mappings are relative to the rootless usernamespace in the container, rather
than being relative to the host as it would be when run rootful.

#### **--userns-gid-map-group**=*group*

Specifies that a GID mapping which should be used to set ownership, at the
Expand All @@ -661,6 +665,10 @@ If --userns-uid-map-user is specified, but --userns-gid-map-group is not
specified, `podman` will assume that the specified user name is also a
suitable group name to use as the default setting for this option.

**NOTE:** When this option is specified by a rootless user, the specified
mappings are relative to the rootless usernamespace in the container, rather
than being relative to the host as it would be when run rootful.

#### **--uts**=*how*

Sets the configuration for UTS namespaces when the handling `RUN` instructions.
Expand Down

0 comments on commit b048486

Please sign in to comment.