Improve usage details on overriding USER command in Docker run refereā¦
| ... | ... |
@@ -1429,7 +1429,10 @@ The developer can set a default user to run the first process with the |
| 1429 | 1429 |
Dockerfile `USER` instruction. When starting a container, the operator can override |
| 1430 | 1430 |
the `USER` instruction by passing the `-u` option. |
| 1431 | 1431 |
|
| 1432 |
- -u="": Username or UID |
|
| 1432 |
+ -u="", --user="": Sets the username or UID used and optionally the groupname or GID for the specified command. |
|
| 1433 |
+ |
|
| 1434 |
+ The followings examples are all valid: |
|
| 1435 |
+ --user=[ user | user:group | uid | uid:gid | user:gid | uid:group ] |
|
| 1433 | 1436 |
|
| 1434 | 1437 |
> **Note:** if you pass a numeric uid, it must be in the range of 0-2147483647. |
| 1435 | 1438 |
|