docker history
docker history <image>
Risk: Safe
What it does
Shows the layers of an image and what made each one.
When to use it
To find big layers, or leaked secrets.
Example
$ docker history diary:1.0Newest layer on top.
Learn it in: Kek lapis: layers and cache · Official docs