liveBook · Manning

Image size

Image size measures an image’s storage requirements or its physical and pixel dimensions, depending on context.

How 2 Manning books explain it

Learn Docker in a Month of Lunches, Second Edition

Image size is the amount of storage represented by a container image and its layers.

How it is used
Uses image size to check Docker build efficiency and compare runtime base-image choices.
How deep it goes
Explains layer-by-layer size behavior through builds and history inspection, without detailing Docker’s storage implementation.
Examples
Compares copied-then-deleted files, Java 22 base-image variants, and a Go toolset image against its application image.
What you can do after
Diagnose/debug with it by comparing `docker image ls` output and `docker history`, then choosing files and base images more selectively.

Read how Learn Docker in a Month of Lunches, Second Edition explains image size →

Build Financial Software with Generative AI (From Scratch)

Image size is the amount of storage space required by a container image.

How it is used
Reduces Docker application storage requirements by comparing images and selecting smaller compatible base images.
How deep it goes
Compares measured image reductions, base-image trade-offs, layers, cleanup, and caching without detailing complete Alpine migration steps.
Examples
Uses docker image ls, API, web, and Postgres images, Alpine and slim tags, Docker Scout analysis, and Dockerfile cleanup.
What you can do after
Operate Docker images more efficiently by measuring sizes and selecting compatible base images and layer arrangements.

Read how Build Financial Software with Generative AI (From Scratch) explains image size →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.