Docker Storage

Copy-on-write filesystem layers

Shared lower data can be reused; modifications may create private writable copies. Deletion markers hide lower files without removing their original image bytes. A hidden lower file is not physical removal of the shared layer.

Formal Syntax & Structure

docker syntaxdocker
Copy-on-write filesystem layers

Working Example

Example Snippetdocker
Conceptual OverlayFS-style modelLower image: /app/config.txt = base, /app/help.txt = helpContainer A upper: /app/config.txt = customContainer B upper: no changesA reads custom; B reads baseA hides help.txt using deletion marker (conceptual whiteout)
Docker Reference