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 IMAGEIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
bind mountdocker volume lsdocker volume inspectdocker volume rmread-only mountDocker Compose volumes