Layers and the Build Cache

1 / 10

Each instruction in a Dockerfile produces a layer — a record of what changed in the filesystem. An image is that stack of layers, and a container adds one thin writable layer on top.

This one mechanism explains build speed, image size, and a whole category of "why is my secret still in there" security incidents.

Finish →