Skip to content

bitsmuggler/minikube-docker-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Setup Docker registry on minikube

1. Modify your /etc/hosts entry for reaching your local registry

127.0.0.1 localhost registry.me

2. Create the docker-registry on minikube

kubectl create -f kube-registry.yaml

Check the response of the installed docker registry:

minikube ssh

curl localhost:5000

3. Map the port 5000 to minikube registry pod

kubectl port-forward --namespace kube-system $(kubectl get po -n kube-sy stem | grep kube-registry-v0 | \awk '{print $1;}') 5000:5000

4. Build, tag and push your docker image to the local registry

  1. Build: docker build -t techtopics/notesapp .
  2. Tag: docker tag techtopics/notesapp:latest registry.me:5000/notesapp:0.0.1
  3. Push: docker push registry.me/notesapp:0.0.1

Resources

About

Running a docker-registry on minikube

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published