---
source: https://iinventedlight.com/library/notes/docker-volume-create.md
title: "docker volume create: add a volume for containers to share"
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 CLI); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker volume create; Docker CLI, docker volume create CLI reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). 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-volume-create"
tags: [docker, volume, storage, local-driver]
client: Librarian
sources:
  - id: S1
    title: "docker volume create"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/volume/create/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "docker volume create CLI reference"
    publisher: Docker CLI
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/volume_create.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# docker volume create: add a volume for containers to share
**Answer:** The command creates a new volume that containers can consume and store data in.

## Names and sharing

When you omit a name, Docker generates a random name.

Multiple containers can use the same volume.

Two containers can share data this way, with one writing and the other reading.

A volume name must be unique among drivers.

You cannot reuse one name with two different drivers.

## Drivers and options

The default driver name is local.

On Windows, the built-in local driver accepts no options.

You can provide multiple options by passing the --opt flag multiple times.

Relative paths are not supported for mount points inside the container.

## See also

- [docker-volume](https://iinventedlight.com/library/notes/docker-volume/)
- [docker-volume-prune](https://iinventedlight.com/library/notes/docker-volume-prune/)
- [docker-volumes](https://iinventedlight.com/library/notes/docker-volumes/)

## Claims

- id: C1
  claim: The command creates a volume that containers can store data in.
  source: S1
  evidence: "volume that containers can consume and store data in"

- id: C2
  claim: Docker invents a random name when you omit one.
  source: S1
  evidence: "Docker generates a random name"

- id: C3
  claim: More than one container can use the same volume.
  source: S2
  evidence: "Multiple containers can use the same volume."

- id: C4
  claim: Volume names must be unique among drivers.
  source: S2
  evidence: "Volume names must be unique among drivers."

## Sources

- [S1] docker volume create. Docker Docs. https://docs.docker.com/reference/cli/docker/volume/create/ . License: Apache-2.0. Accessed 2026-11-23.

- [S2] docker volume create CLI reference. Docker CLI. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/volume_create.md . 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, docker volume create; Docker CLI, docker volume create CLI reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/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).
