Inspect Docker image layers with full commands and sizes
Build a paste-ready command, then review its compatibility and effects before running it.
docker history --no-trunc --format '{{.Size}}\t{{.CreatedBy}}' <image>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementsdockerdocker must be installed and available on PATH.
Version supportdocker Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signals84.2MB RUN /bin/sh -c npm ci --omit=devRepresentative successful output; values vary with the selected target and system state.
Known errorsdocker: command not founddocker is missing or is not available on PATH.
Verifydocker history --no-trunc --format '{{.Size}}\t{{.CreatedBy}}' {{image}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01dockerCommandRuns the docker stage of this one-liner.
02historyArgumentPasses history to docker.
03--no-truncOptionPrevents long values from being shortened.
04--formatOptionFormats each result using the supplied template.
05'{{.Size}}\t{{.CreatedBy}}'ArgumentPasses '{{.Size}}\t{{.CreatedBy}}' to docker.
06<image>ParameterA value supplied in the Fill parameters section.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
docker history --no-trunc --format '{{.Size}}\t{{.CreatedBy}}' api:2026.07
Example output
84.2MB RUN /bin/sh -c npm ci --omit=dev
12.4kB COPY package.json /app/
0B CMD ["node" "server.js"]
Illustrative output — exact values vary by system and data.
Official sources