image_history
Retrieve the layer history of a Docker image to audit build commands and diagnose image size. Each entry shows layer digest, creation time, command, and size.
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
get_image instead.
args: name - Image name (with optional tag/digest) or id returns: list - Layer history entries, newest first
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |