Volume Management in Docker
From the Docker cheat sheet · Volumes & Networks · verified Jul 2026
Volume Management
Create and manage Docker volumes for persistent data storage
bash
# Volume operations
docker volume create myvolume
docker volume ls
docker volume inspect myvolume
docker volume rm myvolume
docker volume prune
# Use volumes
docker run -v myvolume:/data nginx
docker run -v /host/path:/container/path nginx💡 Named volumes persist data between containers
📌 Bind mounts for development, volumes for production
⚠️ Prune removes all unused volumes
✅ Backup important volumes regularly