Skip to content
masterclass Buddy

Docker · Concept

Named volume

A named volume stores data outside a container under a Docker-managed name. Attach the same volume to a new container to keep the data after the old container is removed.

Last updated

Syntax

docker run -v VOLUME:CONTAINER_PATH IMAGE
docker run --mount type=volume,src=VOLUME,dst=CONTAINER_PATH IMAGE

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • bind mount
  • docker volume ls
  • docker volume inspect
  • docker volume rm
  • read-only mount
  • Docker Compose volumes

Source: Keep data with volumes and bind mounts | Docker Learn. Checked 2026-11-03.