Browse code

update option for docker commands

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/09/12 19:34:44
Showing 2 changed files
... ...
@@ -15,11 +15,12 @@ Usage:  docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
15 15
 
16 16
 Run a command in a running container
17 17
 
18
+Options:
18 19
   -d, --detach         Detached mode: run command in the background
19
-  --detach-keys        Override the key sequence for detaching a container
20
-  --help               Print usage
20
+      --detach-keys    Override the key sequence for detaching a container
21
+      --help           Print usage
21 22
   -i, --interactive    Keep STDIN open even if not attached
22
-  --privileged         Give extended privileges to the command
23
+      --privileged     Give extended privileges to the command
23 24
   -t, --tty            Allocate a pseudo-TTY
24 25
   -u, --user           Username or UID (format: <name|uid>[:<group|gid>])
25 26
 ```
... ...
@@ -16,11 +16,12 @@ Usage:  docker inspect [OPTIONS] NAME|ID [NAME|ID...]
16 16
 Return low-level information on one or multiple containers, images, volumes,
17 17
 networks, nodes, services, or tasks identified by name or ID.
18 18
 
19
+Options:
19 20
   -f, --format       Format the output using the given go template
20
-  --help             Print usage
21
+      --help         Print usage
21 22
   -s, --size         Display total file sizes if the type is container
22 23
                      values are "image" or "container" or "task
23
-  --type             Return JSON for specified type
24
+      --type         Return JSON for specified type
24 25
 ```
25 26
 
26 27
 By default, this will render all results in a JSON array. If the container and