Skip to content
Opsfolk

Under the hood, topic 7 of 41

Union file systems and layers

An image is a stack of read-only layers, one for each instruction that changes files. When a container starts, Docker adds a thin writable layer on top and joins them into one file system with a union file system such as overlayfs.

This is why images share layers on disk and in registries, why a file deleted in a later layer still makes the image larger, and why anything a container writes outside a volume is gone when the container is removed.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress