January 2019
Intermediate to advanced
484 pages
11h 48m
English
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 -it centos# lsanaconda-post.log dev home lib64 media opt root sbin sys usrbin etc lib lost+found mnt proc run srv tmp var //create one file (/I_WAS_HERE) at root directory# touch /I_WAS_HERE# ls /I_WAS_HERE bin etc lib lost+found mnt proc run srv tmp varanaconda-post.log dev home lib64 media opt root sbin sys usr //Exit container# exitexit//re-run CentOS Container# docker run -it centos //previous file (/I_WAS_HERE) was disappeared# ls /anaconda-post.log dev home lib64 media opt root ...
Read now
Unlock full access