docker history --format '{{.CreatedBy}}' myapp:latest
Show image build steps with custom formatting
Lists the layers of an image with the Dockerfile instruction that created each. --format renders a Go template; {{.CreatedBy}} shows just the instruction text. Add --no-trunc for full commands.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.