Skip to content

Commit

Permalink
Merge pull request docker#2091 from mikesir87/user-group-info
Browse files Browse the repository at this point in the history
Add clarification when using USER UID:GID
  • Loading branch information
thaJeztah committed Jan 16, 2020
2 parents d05846d + b3a1681 commit c6d10b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/reference/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,9 @@ The `USER` instruction sets the user name (or UID) and optionally the user
group (or GID) to use when running the image and for any `RUN`, `CMD` and
`ENTRYPOINT` instructions that follow it in the `Dockerfile`.

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

0 comments on commit c6d10b6

Please sign in to comment.