简体   繁体   中英

Kubernetes Volumes/PV vs Docker Named Volume

I am trying to understand how in Kubernetes we can achieve the capabilities of Docker Named Volumes. When I create an empty Docker named volume and mount it to my container, existing files in the container location gets copied into the host volume if it's empty, how can we achieve this behaviour wiht Kubernetes PV.

You should be using local persistent volume to store data on the host machine

Follow the link: https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM