Data that survives
Lesson 6 of 20 · Ops.Micro
Containers are disposable, data is not: volumes keep files outside the container.
Files written inside a container live in its own thin layer. docker rm throws that layer away, and any database stored there with it.
Check yourself
What happens to files written inside a container after docker rm?
Do it in the browser: a real DevOps tool, a short mission and instant feedback. No install.
Start this lesson — free