Skip to content

Use locally built images in Minikube without an external registry.

Notifications You must be signed in to change notification settings

qwaa/minikube-registry-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minikube Registry Proxy

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.

Setup

  1. Install Minikube

  2. Enable the registry addon:

    minikube addons enable registry

  3. Install the kube-registry-proxy DaemonSet:

    kubectl apply -f https://github.com/Faithlife/minikube-registry-proxy/raw/master/kube-registry-proxy.yml

  4. 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.

About

Use locally built images in Minikube without an external registry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 57.9%
  • Dockerfile 42.1%