From 7c85fb1665386d01930af417b544b08a497ab781 Mon Sep 17 00:00:00 2001 From: Sian Lerk Lau Date: Fri, 12 Feb 2016 00:05:32 +0800 Subject: [PATCH] Improve usage details on overriding USER command in Docker run reference page Signed-off-by: Sian Lerk Lau --- docs/reference/run.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference/run.md b/docs/reference/run.md index 525290cadc..cab6098ce8 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -1429,7 +1429,10 @@ The developer can set a default user to run the first process with the Dockerfile `USER` instruction. When starting a container, the operator can override the `USER` instruction by passing the `-u` option. - -u="": Username or UID + -u="", --user="": Sets the username or UID used and optionally the groupname or GID for the specified command. + + The followings examples are all valid: + --user=[ user | user:group | uid | uid:gid | user:gid | uid:group ] > **Note:** if you pass a numeric uid, it must be in the range of 0-2147483647.