Command

Docker Create a Volume Command

The Docker command to create a volume is docker volume create NAME.

Quick Answer

Command
docker volume create NAME
DockerCommand

Create a Volume

Type this command
docker volume create NAME

Makes a named volume for persistent data.

Learn More

How to create a volume in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker volume create NAME, replace any placeholders, and run it.

Docker Create a Volume Command

Run docker volume create NAME.

Related Commands

Frequently asked questions

What is the Docker command to create a volume?

Run docker volume create NAME.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify