overlay2: layers and copy-on-write
Select an icon to see what it is.
Step 2 of 6
Reads fall through the layers
When nginx reads a file, overlayfs looks in the upper layer first, then down through the lower layers. The first match wins. Reading never copies anything.
Lookup order
upperdir -> not foundlowerdir (top) -> not foundlowerdir (lower) -> found, read from the image layer