Kubernetes and Docker use a local disk by default. The Docker application may store and load any data onto the disk, for example, log data, temporary files, and application data. As long as the host has enough space and the application has the necessary permission, the data will exist as long as a container exists. In other words, when a container terminates, exits, crashes, or is reassigned to another host, the data will be lost.
Kubernetes volume management
Container volume life cycle
In order to understand Kubernetes' volume management, you'll need to understand the Docker volume life cycle. The following example is how Docker behaves with a volume when a container restarts:
//run CentOS Container
$ docker run...