As the handbook describes, you can reuse the Docker daemon from Minikube with eval $(minikube docker-env).
So to use an image without uploading it, you can follow these steps:
- Set the environment variables with
eval $(minikube docker-env) - Build the image with the Docker daemon of Minikube (e.g.,
docker build -t my-image .) - Set the image in the pod specification like the build tag (e.g.,
my-image) - Set the
imagePullPolicytoNever, otherwise Kubernetes will try to download the image.
Important note: You have to run eval $(minikube docker-env) on each terminal you want to use, since it only sets the environment variables for the current shell session.