From bfce9c8ec29a777b06ce17210c65c50627036d69 Mon Sep 17 00:00:00 2001 From: Chao Dai Date: Fri, 4 Feb 2022 16:52:04 -0800 Subject: [PATCH] Local registry example uses port 5001 to be more mac friendly --- site/content/docs/user/local-registry.md | 10 +++++----- site/static/examples/kind-with-registry.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/content/docs/user/local-registry.md b/site/content/docs/user/local-registry.md index 0931bf03f6..461fc034b1 100644 --- a/site/content/docs/user/local-registry.md +++ b/site/content/docs/user/local-registry.md @@ -23,9 +23,9 @@ with it enabled. The registry can be used like this. 1. First we'll pull an image `docker pull gcr.io/google-samples/hello-app:1.0` -2. Then we'll tag the image to use the local registry `docker tag gcr.io/google-samples/hello-app:1.0 localhost:5000/hello-app:1.0` -3. Then we'll push it to the registry `docker push localhost:5000/hello-app:1.0` -4. And now we can use the image `kubectl create deployment hello-server --image=localhost:5000/hello-app:1.0` +2. Then we'll tag the image to use the local registry `docker tag gcr.io/google-samples/hello-app:1.0 localhost:5001/hello-app:1.0` +3. Then we'll push it to the registry `docker push localhost:5001/hello-app:1.0` +4. And now we can use the image `kubectl create deployment hello-server --image=localhost:5001/hello-app:1.0` -If you build your own image and tag it like `localhost:5000/image:foo` and then use -it in kubernetes as `localhost:5000/image:foo`. +If you build your own image and tag it like `localhost:5001/image:foo` and then use +it in kubernetes as `localhost:5001/image:foo`. diff --git a/site/static/examples/kind-with-registry.sh b/site/static/examples/kind-with-registry.sh index 7420bdfdd5..20aa7fac53 100755 --- a/site/static/examples/kind-with-registry.sh +++ b/site/static/examples/kind-with-registry.sh @@ -3,7 +3,7 @@ set -o errexit # create registry container unless it already exists reg_name='kind-registry' -reg_port='5000' +reg_port='5001' if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then docker run \ -d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \