Overview - Container filesystem is ephemeral
What is it?
A container filesystem is a temporary storage space created when a container starts. It holds all the files and changes made while the container runs. However, once the container stops or is removed, this filesystem and its changes disappear. This means any data saved inside the container is lost unless stored outside.
Why it matters
This concept exists because containers are designed to be lightweight and fast to start or stop. Without ephemeral filesystems, containers would keep growing in size and become harder to manage. Without this, developers would struggle to keep environments consistent and clean, leading to errors and wasted resources.
Where it fits
Before learning this, you should understand what containers are and how they run applications. After this, you can learn about persistent storage options like volumes and bind mounts that keep data safe beyond container life.