From a10422a6f35cade7d3c49c01ae070ad04160fc45 Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Thu, 26 Nov 2020 14:57:36 +0100 Subject: [PATCH] Prevent remote access to insecure registry --- site/static/examples/kind-with-registry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/static/examples/kind-with-registry.sh b/site/static/examples/kind-with-registry.sh index aabac61506..59c3d6ebad 100755 --- a/site/static/examples/kind-with-registry.sh +++ b/site/static/examples/kind-with-registry.sh @@ -7,7 +7,7 @@ reg_port='5000' running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" if [ "${running}" != 'true' ]; then docker run \ - -d --restart=always -p "${reg_port}:5000" --name "${reg_name}" \ + -d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \ registry:2 fi