Search code examples
dockerkuberneteskubernetes-helm

Error "invalid mode" installing mongodb with helm on kubernetes from docker windows


I am experimenting with Kubernetes and helm. I have installed k8s through docker windows and created a cluster. I have successfully installed the dashboard and helm. After running helm install stable/mongodb I see the following error in the k8s dashboard Error: Error response from daemon: invalid mode: /bitnami/mongodb. /bitnami/mongodb is the default mount point of the persistent volume created by the mongodb chart.

Here is a screenshot of my dashboard.

enter image description here

I am not really sure how to debug this further. I am very new to this so I am likely missing something obvious. Any pointers?


Solution

  • I solved this issue by switching to Docker Toolbox and minikube which uses Virtualbox instead of hyperv. Installing mongodb via helm works perfectly as expected. It seems that there are some issues with kubernetes installed in hyperv by the Docker for Windows installer.