On Windows Setup, how can I get docker image from local machine

1/22/2018

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)

-- manvendra
docker
kubernetes
minikube

4 Answers

12/24/2019

Same error and this solution doesn't work for me.

I found this solution here.

You should install docker separate way:

  1. Download choco and with it help
  2. Install docker-desktop
  3. Restart entire your machine(don't forgive do it!)
  4. Now you can do whatever you want to do with docker from command line
-- Ivan Vovk
Source: StackOverflow

4/8/2020

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.

-- IvanCl4udio
Source: StackOverflow

3/7/2018

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

-- manvendra
Source: StackOverflow

1/22/2018

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

-- Fendi jatmiko
Source: StackOverflow