Skip to content

Unclear what a type is when using docker inspect #6047

Open
@rcjsuen

Description

@rcjsuen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions