🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

DevOps Beginner

What is Docker Volume?

A mechanism for persisting data generated by Docker containers, surviving container restarts and removals.

Docker volumes decouple data storage from container lifecycles. Without volumes, all data inside a container is lost when it is removed. Volumes are stored on the host filesystem and managed by Docker. Types include named volumes (managed by Docker, portable), bind mounts (map host directories into containers), and tmpfs mounts (in-memory only). Named volumes are preferred for production — they support volume drivers for remote storage (NFS, AWS EBS), can be shared between containers, and are backed up independently. Docker Compose defines volumes declaratively, and Kubernetes uses Persistent Volumes for similar functionality at scale.

Related Terms

Immutable Deployment
A deployment strategy where new versions replace existing instances entirely rather than updating them in place.
Vault
A tool by HashiCorp for securely managing secrets, encryption keys, and certificates with dynamic secret generation.
Immutable Infrastructure
An approach where servers are never modified after deployment — changes require building and deploying entirely new server instances.
Jenkins
An open-source automation server for building, testing, and deploying software through configurable CI/CD pipelines.
Kubernetes
An open-source container orchestration platform that automates deploying, scaling, and managing containerized applications.
Infrastructure Drift
The divergence between the actual state of infrastructure and its defined desired state, caused by manual changes or untracked modifications.
View All DevOps Terms →