EasyEnv
Engineering/Courses/Catalog/Docker/Volumes and Persistence
Docker
IntermediateLesson 6 of 1330 min · hands-on

Volumes and Persistence

Part of the Docker course

Run a database in a container, add some rows, remove the container, start it again, and the rows are gone. Not corrupted, not hidden: gone, as though you had never typed them. This catches everyone once, and the fix is not a setting you switch on. It follows from how container storage is built, and once you can picture that, the rest of this lesson is obvious.

An image is a stack of read-only layers. Each instruction in a Dockerfile adds one, and because they never change they can be shared: ten containers from the same image share one copy of those layers on disk. ...

Want to learn Docker Volumes and Persistence in a real environment?

Click below, get a fresh Linux box with Docker ready to go, and work through Volumes and Persistence hands-on with an AI tutor that knows your code.

Start this lessonVolumes and Persistence

What you'll learn

  • Bind mounts
  • Named volumes
  • Container writable layer
  • Docker volume
  • Where data lives

Read this lesson in your language

All lessons in this course

13 lessons
  1. 1What Is Docker20 min
  2. 2Your First Container25 min
  3. 3Images and the Dockerfile30 min
  4. 4Building Custom Images35 min
  5. 5Container Networking30 min
  6. 6Volumes and Persistence30 min
  7. 7Docker Compose35 min
  8. 8Multi-Stage Builds35 min
  9. 9Environment Variables and Secrets25 min
  10. 10Healthchecks and Restart Policies25 min
  11. 11Image Optimization and Security30 min
  12. 12Registries and Publishing25 min
  13. 13Capstone: Shipping a Stack50 min

Explore other courses

Volumes and Persistence - Docker (English) | Engineering Courses