Chapter 5: Implementing Storage for the Container's Data
In the previous chapters, we explored how to run and manage our containers using Podman, but we will soon come to realize in this chapter that these operations aren't useful in certain scenarios where the applications included in our containers need to store data in a persistent mode. Containers are ephemeral by default, and this is one of their main features, as we described in the first chapter of this book, and for this reason, we need a way to attach persistent storage to a running container to preserve the container's important data.
In this chapter, we're going to cover the following main topics:
- Why does storage matter for containers?
- Containers' storage features
- Copying files into and out of a container
- Attaching host storage to a container