瀏覽代碼

update option for docker commands

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
yuexiao-wang 8 年之前
父節點
當前提交
7084aa24c7
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 4 3
      docs/reference/commandline/exec.md
  2. 3 2
      docs/reference/commandline/inspect.md

+ 4 - 3
docs/reference/commandline/exec.md

@@ -15,11 +15,12 @@ Usage:  docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
 
 Run a command in a running container
 
+Options:
   -d, --detach         Detached mode: run command in the background
-  --detach-keys        Override the key sequence for detaching a container
-  --help               Print usage
+      --detach-keys    Override the key sequence for detaching a container
+      --help           Print usage
   -i, --interactive    Keep STDIN open even if not attached
-  --privileged         Give extended privileges to the command
+      --privileged     Give extended privileges to the command
   -t, --tty            Allocate a pseudo-TTY
   -u, --user           Username or UID (format: <name|uid>[:<group|gid>])
 ```

+ 3 - 2
docs/reference/commandline/inspect.md

@@ -16,11 +16,12 @@ Usage:  docker inspect [OPTIONS] NAME|ID [NAME|ID...]
 Return low-level information on one or multiple containers, images, volumes,
 networks, nodes, services, or tasks identified by name or ID.
 
+Options:
   -f, --format       Format the output using the given go template
-  --help             Print usage
+      --help         Print usage
   -s, --size         Display total file sizes if the type is container
                      values are "image" or "container" or "task
-  --type             Return JSON for specified type
+      --type         Return JSON for specified type
 ```
 
 By default, this will render all results in a JSON array. If the container and