Phase 16 · Docker & Containers

Topics

Volumes

Part of the Backend Developer Roadmap.

Summary

Docker's mechanism for persisting data outside a container's writable layer — essential for databases, since a container's own filesystem is wiped when it's removed.

How to Learn This

  • 1Add a volume to a database container and confirm data survives a container restart.
  • 2Learn the difference between named volumes and bind mounts.
  • 3Understand why you should never rely on a container's own filesystem for anything you need to keep.
InsideEdge

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.

Download
InsideEdge