Docker History Command

The docker history command is way cool. It tells you all the actions that took place in order to generate the image of a container. When I executed the command I found it perplexing that the print format cuts off the actual commands..

There’s a lot of useful information in there but you get the start of the line and then ellipses in the Created By column. I did some research and found a solution..
Enter the following command and substitute with your image identifier.

docker history 169e409e70af --format "{{.ID}}: {{.CreatedBy}}" --no-trunc

. Now you can see the full commands that generated the image.

Leave a Reply