Skip to content

Small images and vulnerability scanning

Select an icon to see what it is.

Step 1 of 6

The base image sets the floor

Every image contains its base image's layers, so a big base makes a big image. A full Debian base is the largest, -slim variants are smaller, alpine is smaller still, and scratch is empty. Smaller images pull faster and have fewer packages to attack.

$ docker images
PrevNext

Relative sizes (described in words, not measured here)

debian:bookworm largest of these
debian:bookworm-slim smaller: fewer packages
alpine a few MB: musl libc and BusyBox
scratch nothing: only what you copy in, for static binaries