Skip to content

Glossary: Docker Basics

-v (mount)

Also written: -v NAME:PATH, --volume

A `docker run` option that mounts storage into a container: a volume name gives a named volume, a folder path gives a bind mount. It is how a database's data outlives its container.

Where the book teaches it

Related terms

VolumeBind mount