Browse Source

Merge pull request #25366 from yongtang/08032016-man-docker-create-user-flag

Update `--user`/`-u` flag in man page of `docker create`
Sebastiaan van Stijn 9 years ago
parent
commit
e737e6a204
1 changed files with 6 additions and 1 deletions
  1. 6 1
      man/docker-create.1.md

+ 6 - 1
man/docker-create.1.md

@@ -375,7 +375,12 @@ any options, the systems uses the following options:
 `rw,noexec,nosuid,nodev,size=65536k`.
 `rw,noexec,nosuid,nodev,size=65536k`.
 
 
 **-u**, **--user**=""
 **-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**=[]
    Ulimit options
    Ulimit options