Open
Description
Description
The documentation for --type
just says Return JSON for specified type
. Could we improve this to include all the types or at least some of the commonly used ones?
$ docker -v
Docker version 28.1.1, build 4eba377
$ docker inspect --help
Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...]
Return low-level information on Docker objects
Options:
-f, --format string Format output using a custom template:
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
-s, --size Display total file sizes if the type is container
--type string Return JSON for specified type