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)
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 build
ing 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.)