Kubernetes Volumes/PV vs Docker Named Volume

2/13/2019

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.

-- Eager 2 Learn
docker
kubernetes
volume

1 Answer

2/13/2019

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/

-- P Ekambaram
Source: StackOverflow