瀏覽代碼

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 年之前
父節點
當前提交
e737e6a204
共有 1 個文件被更改,包括 6 次插入1 次删除
  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`.
 
 **-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