Kubernetes persistent volume on Docker Desktop (Windows) Kubernetes persistent volume on Docker Desktop (Windows) docker docker

Kubernetes persistent volume on Docker Desktop (Windows)


You should use hostpath Volume type in your pod`s spec to mount a file or directory from the host node’s filesystem, where hostPath.path field should be of following format to accept Windows like paths:

  • /W/fooapp/influxdb
  • //W/fooapp/influxdb
  • /////W/fooapp/influxdb

Please check this github issue explaining peculiarities of Kubernetes Volumes on Windows.I assume also that you have enabled Shared Drives feature in your Docker for Windows installation.