mirror of https://github.com/docker/cli.git
Refactor `docker inspect` to work on all types
Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
This commit is contained in:
parent
cfb8a110b4
commit
a2b443d1df
|
@ -11,15 +11,16 @@ parent = "smn_cli"
|
||||||
# inspect
|
# inspect
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker inspect [OPTIONS] CONTAINER|IMAGE|TASK [CONTAINER|IMAGE|TASK...]
|
Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...]
|
||||||
|
|
||||||
Return low-level information on a container, image or task
|
Return low-level information on one or multiple containers, images, volumes,
|
||||||
|
networks, nodes, services, or tasks identified by name or ID.
|
||||||
|
|
||||||
-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
|
values are "image" or "container" or "task
|
||||||
--type Return JSON for specified type, (e.g image, container or task)
|
--type Return JSON for specified type
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, this will render all results in a JSON array. If the container and
|
By default, this will render all results in a JSON array. If the container and
|
||||||
|
|
|
@ -2,23 +2,23 @@
|
||||||
% Docker Community
|
% Docker Community
|
||||||
% JUNE 2014
|
% JUNE 2014
|
||||||
# NAME
|
# NAME
|
||||||
docker-inspect - Return low-level information on a container or image
|
docker-inspect - Return low-level information on docker objects
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker inspect**
|
**docker inspect**
|
||||||
[**--help**]
|
[**--help**]
|
||||||
[**-f**|**--format**[=*FORMAT*]]
|
[**-f**|**--format**[=*FORMAT*]]
|
||||||
[**-s**|**--size**]
|
[**-s**|**--size**]
|
||||||
[**--type**=*container*|*image*]
|
[**--type**=*container*|*image*|*network*|*node*|*service*|*task*|*volume*]
|
||||||
CONTAINER|IMAGE [CONTAINER|IMAGE...]
|
NAME|ID [NAME|ID...]
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
This displays all the information available in Docker for a given
|
This displays all the information available in Docker for one or multiple given
|
||||||
container or image. By default, this will render all results in a JSON
|
containers, images, volumes, networks, nodes, services, or tasks. By default,
|
||||||
array. If the container and image have the same name, this will return
|
this will render all results in a JSON array. If the container and image have
|
||||||
container JSON for unspecified type. If a format is specified, the given
|
the same name, this will return container JSON for unspecified type. If a format
|
||||||
template will be executed for each result.
|
is specified, the given template will be executed for each result.
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
**--help**
|
**--help**
|
||||||
|
@ -30,8 +30,9 @@ template will be executed for each result.
|
||||||
**-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*"
|
**--type**=*container*|*image*|*network*|*node*|*service*|*task*|*volume*
|
||||||
Return JSON for specified type, permissible values are "image" or "container"
|
Return JSON for specified type, permissible values are "image", "container",
|
||||||
|
"network", "node", "service", "task", and "volume".
|
||||||
|
|
||||||
# EXAMPLES
|
# EXAMPLES
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue