Skip to main content
duffn.dev

Using Minikube with Local Docker Images

Share: 

When developing locally with Minikube, you may want to use locally built Docker images instead of images hosted in a registry. Why push images up to Google's GCR or AWS ECR if you're only testing locally? Thankfully, this is simple with only a few steps.

eval $(minikube docker-env)
spec:
containers:
# This is for local use on minikube
- image: nginx:20180919
name: nginx
imagePullPolicy: IfNotPresent