On-disk files in a container are ephemeral, which presents some problems for non-trivial applications when running in containers. One problem occurs when a container crashes or is stopped. Container state is not saved so all of the files that were created or modified during the lifetime of the container are lost. During a crash, kubelet restarts the container with a clean state. Another problem oc
![Volumes - Kubernetes](https://cdn-ak-scissors.b.st-hatena.com/image/square/9013b6cc8b3232f7a7f3a0347b30f01b6923b068/height=288;version=1;width=512/https%3A%2F%2Fkubernetes.io%2Fimages%2Ffavicon.png)