What is the "minikube docker-env" replacement for Docker for Windows

6/25/2019

I'm running the built in Kubernetes cluster of Docker for Windows for development purposes and I need run some Docker commands against the cluster, but I'm unable to find a replacement for Minikube's "minikube docker-env".

I want to do something like this to manipulate the Kubernetes cluster:

eval $(minikube docker-env)

I want to do something like this after I'm done with the Kubernetes cluster:

eval $(docker-machine env -u)
-- user1937459
docker
docker-for-mac
docker-for-windows
kubernetes

1 Answer

6/25/2019

One of the big advantages of the Kubernetes distribution built into the Docker Desktop products is that there isn’t a separate Kubernetes VM. These commands just don’t exist; the Kubernetes Docker is the same Docker as your desktop Docker.

(Remember to set imagePullPolicy: Never on pod specs where you’re docker building the image the pod runs, and that hacks like bind-mounting your local source tree over what’s built into an image are especially unwieldy and unportable in Kubernetes.)

-- David Maze
Source: StackOverflow