How to check which layer of a Docker image is the largest one

The only good way to check which layer of a Docker image is the largest one is to use dive.

dive layer size

dive_layer_size.sh
dive your-image:tag

Navigate through the layers using the arrow keys (top left panel) and see the size of each layer on the left.

Press q to quit dive.


Check out similar posts by category: Docker