Reputation: 4493
How do I change the location of the entire .minikube
folder that gets created when you run minikube? (Windows 10 system using Hyper-V)
C:\Users\username\.minikube
Upvotes: 9
Views: 4555
Reputation: 3484
Setting MINIKUBE_HOME in terminal might not work, and this variable will be temporary and forgotten when the terminal is closed. Instead, add a System environment variable called MINIKUBE_HOME in Windows by opening Run->sysdm.cpl->Advanced->Environment Variables and set its value to the custom folder you dedicated to Minikube. For example D:.minikube
Delete existing Minikube cluster, if any, using this command:
minikube stop
minikube delete
Close existing terminal you have open, if any, and open it again.
Run minikube start
and it will pick up the new location for Minikube.
Thanks for @Vit for introducing me to the MINIKUBE_HOME environment variable
Upvotes: 2
Reputation: 8491
I think the most painless method will be
change minikube install location with MINIKUBE_HOME
var
set MINIKUBE_HOME=D:\Uerotavlas.minikube
start cluster again
Upvotes: 9