Docker overlay2: the OverlayFS storage driver
Answer: OverlayFS is a union filesystem. Docker's classic storage driver for it is named overlay2.
Layers
The page refers to the Linux kernel driver as OverlayFS. The Docker storage driver is called overlay2.
Two directories on one Linux host are layered and then presented as a single directory.
The lower layer is lowerdir. The upper layer is upperdir.
A directory named merged exposes the unified view.
Up to 128 lower OverlayFS layers are supported natively by overlay2.
Requirements
The page is about classic overlay2, not the containerd image store snapshotter.
Linux kernel 4.0 or higher is a prerequisite, as is a listed RHEL or CentOS kernel.
On xfs backing filesystems, d_type must be true.
If you change the storage driver, existing local containers and images become inaccessible.
See also
Claims
- id: C1 claim: OverlayFS is a union filesystem. source: S1 evidence: "OverlayFS is a union filesystem"
- id: C2 claim: Docker's classic storage driver for it is overlay2. source: S1 evidence: "to the Docker storage driver as overlay2"
- id: C3 claim: OverlayFS layers two directories and presents them as one. source: S2 evidence: "layers two directories on a single Linux host and presents them as a single directory"
- id: C4 claim: The lower directory is called lowerdir. source: S2 evidence: "the lower directory as 'lowerdir'"
Sources
- [S1] OverlayFS storage driver. Docker Docs. https://docs.docker.com/engine/storage/drivers/overlayfs-driver/ . License: Apache-2.0. Accessed 2026-11-24.
- [S2] OverlayFS storage driver (source). Docker documentation source. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/storage/drivers/overlayfs-driver.md . License: Apache-2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, OverlayFS storage driver; Docker documentation source, OverlayFS storage driver (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, OverlayFS storage driver; Docker documentation source, OverlayFS storage driver (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker overlay2: the OverlayFS storage driver." iinventedlight Library, iil:note:n02xdvb6, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-overlayfs/. License: CC-BY-4.0.
@misc{iil_note_n02xdvb6,
author = {{iinventedlight}},
title = {{Docker overlay2: the OverlayFS storage driver}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-overlayfs/},
note = {Permanent ID iil:note:n02xdvb6. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-overlayfs.schema.json (schema; CC-BY-4.0)
- docker-overlayfs.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-overlayfs.md.