🐳 Ep 3 — Volumes: Making Data Survive
💾 Containers are ephemeral. Your data shouldn't be.
Episode 3 of the Docker to Kubernetes series. Learn how to make data survive container restarts and destruction using volumes and bind mounts.
🔍 What you'll learn:
• The problem: containers are temporary by design
• The flip side of the container insight
• Named volumes vs bind mounts
• The stateless/stateful split
• Live demos: destroy a container, keep the data
• The three things to remember
• Prove-it questions to test yourself
⏱️ Chapters:
0:00 Introduction
0:18 The Problem
0:34 The Container Insight — and its Flip Side
0:55 Container vs Volume
1:11 The Stateless/Stateful Split
1:35 Prove It: The Ephemerality Demo
1:54 Write a File Inside
2:08 Stop the Container
2:20 Try to Access It
2:33 Now With a Volume
2:50 Write Into the Volume
3:03 Destroy the Container Entirely
3:17 Check the Volume
3:32 Understanding -v my-data:/data
3:54 The Second Type: Bind Mounts
4:17 Live Code Editing
4:37 The Three Things to Remember
5:04 Your Exercise
5:28 Prove It — Question 1
5:48 Prove It — Question 2
6:08 Prove It — Question 3
6:26 Next Up: Docker Compose
6:37 Recap
#Docker #Volumes #DevOps #DockerTutorial #PersistentStorage