Use locally built images in Minikube without an external registry.
8.8K
minikube-registry-proxy runs as a container in your Docker Engine and proxies port 5000 to Minikube. This allows you to easily use locally built images in Minikube without requiring an external registry.
Tanmai Gopal explains this problem and general solution in Sharing a local registry with minikube. The minikube-registry-proxy solution works well with Docker for Mac (not just docker-machine) and uses the Minikube registry addon. It allows your Docker version to be newer than the version supported by Minikube.
Install Minikube
Enable the registry addon:
minikube addons enable registry
Install the kube-registry-proxy DaemonSet:
kubectl apply -f https://github.com/Faithlife/minikube-registry-proxy/raw/master/kube-registry-proxy.yml
Start the minikube-registry-proxy:
curl -L https://github.com/Faithlife/minikube-registry-proxy/raw/master/docker-compose.yml | MINIKUBE_IP=$(minikube ip) docker-compose -p mkr -f - up -d
You can now push images with a localhost:5000/ tag prefix and pull them into Minikube.
Content type
Image
Digest
Size
26.6 MB
Last updated
about 8 years ago
docker pull faithlife/minikube-registry-proxy