1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Improve usage details on overriding USER command in Docker run reference page

Signed-off-by: Sian Lerk Lau <kiawin@gmail.com>
Upstream-commit: bc3e02b9ec4702981bbbd337e4f6ca12bf4eb202
Component: engine
This commit is contained in:
Sian Lerk Lau
2016-02-12 00:05:32 +08:00
parent b547022504
commit d0366b3eb4

View File

@@ -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.