Merge pull request #540 from dhauenstein/patch-1

Added GID to USER instruction
This commit is contained in:
Misty Stanley-Jones 2016-11-16 14:25:00 -08:00 committed by GitHub
commit 1e688adaa7
1 changed files with 3 additions and 2 deletions

View File

@ -1200,11 +1200,12 @@ into the newly created volume.
## USER
USER daemon
USER daemon[:daemon]
The `USER` instruction sets the user name or UID to use when running the image
and for any `RUN`, `CMD` and `ENTRYPOINT` instructions that follow it in the
`Dockerfile`.
`Dockerfile`. To specify the group ID (GID), add it as a suffix to the UID,
separated by a colon. For instance, `MYUSER:MYGROUP`.
## WORKDIR