mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update --user
/-u
flag in man page of docker create
The `--user`/`-u` of the `docker create` is the same as `docker run`, which could take either `uid` or `uid:gid` format. However, the description in the man page of `docker create` is missing and may cause some confusions (comared with `docker run`). This fix updates the man page of `docker create` so that it is consistent with the man page of `docker run`. This fix is related to 25304. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
919257da66
commit
55478a2c3e
1 changed files with 6 additions and 1 deletions
|
@ -375,7 +375,12 @@ any options, the systems uses the following options:
|
|||
`rw,noexec,nosuid,nodev,size=65536k`.
|
||||
|
||||
**-u**, **--user**=""
|
||||
Username or UID
|
||||
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 ]
|
||||
|
||||
Without this argument root user will be used in the container by default.
|
||||
|
||||
**--ulimit**=[]
|
||||
Ulimit options
|
||||
|
|
Loading…
Add table
Reference in a new issue