image_history
View the layer history of a Docker image to audit build commands and diagnose size. Each entry shows layer ID, timestamp, command, size, and comment.
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 |