1
0
mirror of https://github.com/docker/cli.git synced 2025-08-08 12:02:07 +03:00

Refactor docker inspect to work on all types

Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
This commit is contained in:
Arnaud Porterie (icecrime)
2016-06-15 21:41:54 -07:00
committed by Tibor Vass
parent cfb8a110b4
commit a2b443d1df
2 changed files with 15 additions and 13 deletions

View File

@@ -11,15 +11,16 @@ parent = "smn_cli"
# inspect
```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
--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, (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