The safe-deposit box at a hotel's reception belongs to no room. Guests check out, rooms are cleaned, and the box's contents wait until someone collects them. Docker keeps data that must outlive a container the same way: a database, uploaded files, a build cache. Let's see how to create such a box, attach it to a container and when it disappears.
In this lesson
- Creating a volume
- Attaching a volume to a container
- When a volume is deleted
- Common mistake
- Key points