Process Flow - Image layers concept
Start Dockerfile
Read first instruction
Create first image layer
Read next instruction
Create next image layer
Repeat for all instructions
Final image = stack of layers
Use image layers for caching & reuse
Docker reads each instruction in a Dockerfile and creates a separate image layer for it. These layers stack to form the final image, enabling caching and reuse.