Skip to content
Opsfolk

Storage and networking, topic 14 of 41

Volumes

A volume is a directory Docker creates and manages, mounted into a container with -v name:/path or --mount. It outlives the container, can be shared between containers, and is the right place for a database's files.

Learn to create, list, inspect and remove volumes, what happens when an empty volume is mounted over a directory that has files in the image, and how to back one up by mounting it into a throwaway container.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress