Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)

like image 595
manvendra Avatar asked Jan 22 '18 07:01

manvendra


People also ask

How do I run a Docker image locally in Windows?

Select the image you want to run, and click Run. On the Run menu, set up the configuration for the container, such as the container name, the isolation type, which ports to publish, and memory and CPU allocation. Additionally, you can append Docker run commands that are not in the UI, such as -v for persistent volume.

How do I run a Docker image from a local repository?

You can also run a Docker image from your own Docker file using the docker-compose command. With compose, you can configure your application's services and then you can start all services with a single command. For example, set up a docker-compose. yml like this in your repository root (where the Dockerfile is):

Where are local Docker images stored Windows?

In a default installation, layers are stored in C:\ProgramData\docker and split across the "image" and "windowsfilter" directories. You can change where the layers are stored using the docker-root configuration, as demonstrated in the Docker Engine on Windows documentation.

Where is Docker image locally?

If you use the default storage driver overlay2, then your Docker images are stored in /var/lib/docker/overlay2 . There, you can find different files that represent read-only layers of a Docker image and a layer on top of it that contains your changes.


1 Answers

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

like image 131
manvendra Avatar answered Oct 11 '22 17:10

manvendra