I could understand, different ways to access docker image from local machine to Minikube VM.
(Kubernetes + Minikube) can't get docker image from local registry
All these examples are for Mac/Linux user.
I'm looking for an equivalent suggestion for Windows user.
What's windows equivalent to -> eval $(minikube docker-env)
Same error and this solution doesn't work for me.
I found this solution here.
You should install docker separate way:
Like manvedra said ,those steps worked for me too. In a powershell command prompt and run the following commands:
minikube start
, to start minikube cluster.
minikube docker-env
, it will configure some environment variables and at bottom it will show the last command to be run.
minikube -p minikube docker-env | Invoke-Expression
, last step.
Done.
I found relatively easy way to point docker client(docker-machine) to minikube’s docker environment by running below commands in PowerShell ->
PS C:\Users\ABC> minikube docker-env
PS C:\Users\ABC> minikube docker-env | Invoke-Expression
What's windows equivalent to -> eval $(minikube docker-env)
either docker-machine env my-default
or
@FOR /f "tokens=*" %i IN ('docker-machine env YOURMACHINENAME') DO @%i