Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 838d67c

Browse files
mikesir87thaJeztah
authored andcommitted
Add clarification when using USER UID:GI
Signed-off-by: Michael Irwin <mikesir87@gmail.com> (cherry picked from commit b3a1681fd81cae1abe67b1a2c0ad6f137593c6ea) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 365bae4f89a47841616d7aa087f1de68137bfaaa Component: cli
1 parent 2490034 commit 838d67c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/cli/docs/reference/builder.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,9 @@ The `USER` instruction sets the user name (or UID) and optionally the user
14841484
group (or GID) to use when running the image and for any `RUN`, `CMD` and
14851485
`ENTRYPOINT` instructions that follow it in the `Dockerfile`.
14861486

1487+
> Note that when specifying a group for the user, the user will have _only_ the
1488+
> specified group membership. Any other configured group memberships will be ignored.
1489+
14871490
> **Warning**:
14881491
> When the user doesn't have a primary group then the image (or the next
14891492
> instructions) will be run with the `root` group.

0 commit comments

Comments
 (0)