Find what is taking up space in an image

Bash

Prints the size each layer adds, which usually points straight at the offending RUN line.

docker history --no-trunc --format '{{.Size}}\t{{.CreatedBy}}' my-image:latest

More in Containers

Random picks