Modify short and flags for docker inspect

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
yuexiao-wang 2016-09-18 13:11:02 +08:00 committed by Tibor Vass
parent 33964db9d0
commit 49a282eb1c
2 changed files with 7 additions and 8 deletions

View File

@ -18,14 +18,13 @@ keywords: ["inspect, container, json"]
```markdown ```markdown
Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...] Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...]
Return low-level information on one or multiple containers, images, volumes, Return low-level information on Docker object(s) (e.g. container, image, volume,
networks, nodes, services, or tasks identified by name or ID. network, node, service, or task) identified by name or ID
Options: Options:
-f, --format Format the output using the given Go template -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 -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
``` ```

View File

@ -14,8 +14,8 @@ NAME|ID [NAME|ID...]
# DESCRIPTION # DESCRIPTION
This displays all the information available in Docker for one or multiple given This displays the low-level information on Docker object(s) (e.g. container,
containers, images, volumes, networks, nodes, services, or tasks. By default, image, volume,network, node, service, or task) identified by name or ID. By default,
this will render all results in a JSON array. If the container and image have this will render all results in a JSON array. If the container and image have
the same name, this will return container JSON for unspecified type. If a format the same name, this will return container JSON for unspecified type. If a format
is specified, the given template will be executed for each result. is specified, the given template will be executed for each result.
@ -25,14 +25,14 @@ is specified, the given template will be executed for each result.
Print usage statement Print usage statement
**-f**, **--format**="" **-f**, **--format**=""
Format the output using the given Go template. Format the output using the given Go template
**-s**, **--size** **-s**, **--size**
Display total file sizes if the type is container. Display total file sizes if the type is container
**--type**=*container*|*image*|*network*|*node*|*service*|*task*|*volume* **--type**=*container*|*image*|*network*|*node*|*service*|*task*|*volume*
Return JSON for specified type, permissible values are "image", "container", Return JSON for specified type, permissible values are "image", "container",
"network", "node", "service", "task", and "volume". "network", "node", "service", "task", and "volume"
# EXAMPLES # EXAMPLES