image_history
Inspect a Docker image's layer history to audit the commands that built each layer and diagnose size contributions. Returns layer entries with command, size, and timestamp.
Instructions
Return the layer history of an image.
Useful for auditing what commands built each layer and diagnosing image size. Each entry
includes Id (layer digest or "" for imported layers), Created (unix
timestamp), CreatedBy (the Dockerfile command that produced the layer, e.g. a RUN or
COPY), Size (bytes added by that layer), and Comment. For full image metadata use
image_inspect instead.
Args: id_or_name: Image name (with optional tag/digest) or id
Returns: list: Layer history entries, newest first
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |