From 38b32c1227cef9253ef7095912b663c20eec25b0 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 29 Aug 2024 16:42:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(tilt)=20stop=20kind-registry?= =?UTF-8?q?=20to=20restart=20when=20stopped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To save resources, it is nive to be able to stop the kind-registry when it is not needed. This commit allow us to stop it. --- bin/start-kind.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start-kind.sh b/bin/start-kind.sh index a77f12f6..59eba562 100755 --- a/bin/start-kind.sh +++ b/bin/start-kind.sh @@ -16,7 +16,7 @@ reg_name='kind-registry' 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" --network bridge --name "${reg_name}" \ + -d --restart=unless-stopped -p "127.0.0.1:${reg_port}:5000" --network bridge --name "${reg_name}" \ registry:2 fi