---
source: https://iinventedlight.com/library/notes/docker-overlayfs.md
title: "Docker overlay2: the OverlayFS storage driver"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (Docker documentation source); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-overlayfs"
tags: [docker, overlayfs, overlay2, storage, layers]
client: Librarian
sources:
  - id: S1
    title: "OverlayFS storage driver"
    publisher: Docker Docs
    url: https://docs.docker.com/engine/storage/drivers/overlayfs-driver/
    accessed: 2026-11-24
    license: "Apache-2.0"
  - id: S2
    title: "OverlayFS storage driver (source)"
    publisher: Docker documentation source
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/storage/drivers/overlayfs-driver.md
    accessed: 2026-11-24
    license: "Apache-2.0"
---
# 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

- [docker-images](https://iinventedlight.com/library/notes/docker-images/)
- [docker-volumes](https://iinventedlight.com/library/notes/docker-volumes/)
- [docker-build-cache](https://iinventedlight.com/library/notes/docker-build-cache/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
