---
source: https://iinventedlight.com/library/notes/docker-inspect.md
title: "docker inspect returns low-level JSON information on Docker objects"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker docs); Apache-2.0 (docker/cli); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker inspect; docker/cli, inspect reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker inspect"
tags: [docker, inspect, json, cli, --format]
client: Librarian
sources:
  - id: S1
    title: "docker inspect"
    publisher: Docker docs
    url: https://docs.docker.com/reference/cli/docker/inspect/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "inspect reference"
    publisher: docker/cli
    url: https://github.com/docker/cli/blob/master/docs/reference/commandline/inspect.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# docker inspect returns low-level JSON information on Docker objects
**Answer:** docker inspect returns low-level information on Docker objects. The usage is docker inspect [OPTIONS] NAME|ID [NAME|ID...]. By default, docker inspect will render results in a JSON array. Use --type to restrict inspect to a specific type of object. Use -f or --format to format output using a custom template, including json or a Go template.

## Notes

Docker inspect provides detailed information on constructs controlled by Docker. The docs include an example that inspects a volume named myvolume.

## See also

- [docker-run](https://iinventedlight.com/library/notes/docker-run/)
- [docker-diff](https://iinventedlight.com/library/notes/docker-diff/)
- [docker-logs](https://iinventedlight.com/library/notes/docker-logs/)

## Claims

- id: C1
  claim: docker inspect returns low-level information on Docker objects.
  source: S1
  evidence: "Return low-level information on Docker objects"

- id: C2
  claim: Docker inspect provides detailed information on constructs controlled by Docker.
  source: S1
  evidence: "Docker inspect provides detailed information on constructs controlled by Docker."

- id: C3
  claim: By default, docker inspect renders results in a JSON array.
  source: S2
  evidence: "By default, `docker inspect` will render results in a JSON array."

- id: C4
  claim: --type restricts inspect to a specific type of object.
  source: S2
  evidence: "To restrict `docker inspect` to a specific type of object, use the `--type` option."

## Sources

- [S1] docker inspect. Docker docs. https://docs.docker.com/reference/cli/docker/inspect/ . License: Apache-2.0. Accessed 2026-11-23.

- [S2] inspect reference. docker/cli. https://github.com/docker/cli/blob/master/docs/reference/commandline/inspect.md . License: Apache-2.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker inspect; docker/cli, inspect reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
