Member-only story

What is Docker Volume

Meghasharmaa
7 min readMar 5, 2024

👉Volumes

A Docker volume is a mechanism for persisting data generated by and used by Docker containers. Volumes provide a way to store and share data between containers, as well as between a container and the host system. While bind mount are dependent on the directory structure and OS of the host machine, volumes are completely managed by Docker.

A Docker volume is a persistent storage mechanism used to manage and persist data generated by Docker containers. Volumes provide a way to store and share data between containers, as well as between a container and the Docker host system. They are designed to overcome the ephemeral nature of container filesystems, ensuring that data remains intact even when containers are stopped, removed, or replaced.

👉 Volumes have several advantages over bind mounts:

  • Volumes are easier to back up or migrate than bind mounts.
  • You can manage volumes using Docker CLI commands or the Docker API.
  • Volumes work on both Linux and Windows containers.
  • Volumes can be more safely shared among multiple containers.
  • Volume drivers let you store volumes on remote hosts or cloud providers, encrypt the contents of volumes, or add other functionality.

--

--

Meghasharmaa
Meghasharmaa

Written by Meghasharmaa

DevOps Architect | AWS | Docker | Kubernetes | Terraform | Google Cloud | Python

No responses yet