What happens when you put your app in a Docker container
Docker volumes: how your data stays when the container is gone
You replace a Docker container with a new version. Everything the old container saved can disappear with it. Yet databases run in containers every day, and their data stays.
-
1
Rono is worried, and he is right: the next time you replace the container, its writable layer is removed, and the playlist with it.
-
2
Not in the image, sadly: it was built before the show, and its layers are read-only. The playlist needs a place that no container owns.
The rest of this episode is for subscribers
Subscribe to read every premium episode. You can cancel when you want.
Paid yearly: $99 instead of $119.88