diff --git a/site/content/en/docs/handbook/registry.md b/site/content/en/docs/handbook/registry.md index 12995de882..a42d1595e5 100644 --- a/site/content/en/docs/handbook/registry.md +++ b/site/content/en/docs/handbook/registry.md @@ -83,13 +83,19 @@ The first step is to enable the registry addon: minikube addons enable registry ``` -When enabled, the registry addon exposes its port 5000 on the minikube's virtual machine. +When enabled, the registry addon exposes its port 80 on the minikube's virtual machine. You can confirm this by: +```shell +kubectl get service --namespace kube-system +> NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE +> kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 54m +> registry ClusterIP 10.98.34.133 80/TCP,443/TCP 37m +``` -In order to make docker accept pushing images to this registry, we have to redirect port 5000 on the docker virtual machine over to port 5000 on the minikube machine. Unfortunately, the docker vm cannot directly see the IP address of the minikube vm. To fix this, you will have to add one more level of redirection. +In order to make docker accept pushing images to this registry, we have to redirect port 5000 on the docker virtual machine over to port 80 on the minikube registry service. Unfortunately, the docker vm cannot directly see the IP address of the minikube vm. To fix this, you will have to add one more level of redirection. Use kubectl port-forward to map your local workstation to the minikube vm ```shell -kubectl port-forward --namespace kube-system 5000:5000 +kubectl port-forward --namespace kube-system service/registry 5000:80 ``` On your local machine you should now be able to reach the minikube registry by using `curl http://localhost:5000/v2/_catalog`