What is a union filesystem / OverlayFS?
IntermediateConceptImages, Layers & Storage Drivers
Answer
A union filesystem presents several directories as one merged view. OverlayFS has lowerdir (read-only image layers, colon-separated), upperdir (container writable layer), workdir and a merged mountpoint. Reads fall through to the first layer that has the file; writes go to upperdir.
docker inspect -f '{{json .GraphDriver.Data}}' web
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat storage drivers does Docker support and which is default?IntermediateWhat is the containerd image store and how does it differ from the classic graph driver store?Advanced