← All notes

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

Sources

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

Permanent ID: iil:note:4nsn8yt9

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.},
}

Markdown

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.

All artifact files (JSON index)

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.