Interview Prep/Docker/Images, Layers & Storage Drivers

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
All Docker questions Roadmap: Docker & containers

More on Images, Layers & Storage Drivers