Docker volumes: persistent data managed by Docker
Answer: Volumes are persistent data stores for containers, and Docker creates and manages them. They are the preferred way to persist data. The docker volume command has subcommands to create, inspect, list, or remove them.
Why volumes
A volume is a persistent store for container data, created and managed by Docker.
You may create one explicitly, or Docker may create one when a container or service starts.
For data that a container generates and later reuses, volumes are the preferred mechanism.
Unlike a bind mount, Docker manages the volume and isolates it from the core functionality of the host machine.
The docker volume command
The CLI page lists subcommands to create, inspect, list, remove, or prune volumes.
Inspect can display detailed information on one or more volumes.
See also
Claims
- id: C1 claim: Volumes are persistent data stores created and managed by Docker. source: S1 evidence: "Volumes are persistent data stores for containers, created and managed by"
- id: C2 claim: Volumes are the preferred way to persist container data. source: S1 evidence: "preferred mechanism for persisting data generated by and used"
- id: C3 claim: Volumes are isolated from the core functionality of the host machine. source: S1 evidence: "isolated from the core functionality of the host machine"
- id: C4 claim: docker volume subcommands can create, inspect, list, or remove volumes. source: S2 evidence: "subcommands to create, inspect, list, remove"
Sources
- [S1] Volumes. Docker Docs. https://docs.docker.com/engine/storage/volumes/ . License: Apache-2.0. Accessed 2026-11-23.
- [S2] docker volume. Docker Docs. https://docs.docker.com/reference/cli/docker/volume/ . License: Apache-2.0. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Volumes; Docker Docs, docker volume. 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, Volumes; Docker Docs, docker volume. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker volumes: persistent data managed by Docker." iinventedlight Library, iil:note:4nsn8yt9, version of 2026-11-23. https://iinventedlight.com/library/notes/docker-volume/. License: CC-BY-4.0.
@misc{iil_note_4nsn8yt9,
author = {{iinventedlight}},
title = {{Docker volumes: persistent data managed by Docker}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/docker-volume/},
note = {Permanent ID iil:note:4nsn8yt9. 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-volume.schema.json (schema; CC-BY-4.0)
- docker-volume.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-volume.md.