union filesystem

A filesystem that stacks several directories on top of each other and shows them as one.

In more detail

Docker builds a container root directory by stacking the read-only image layers with a writable layer on top; when two layers hold the same path, the higher one wins. On Linux this is done by OverlayFS through the overlay2 storage driver. Because layers are shared rather than copied, a hundred containers from one image do not need a hundred copies of it.

Related terms

Taught in

References