️(tilt) stop kind-registry to restart when stopped

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.
This commit is contained in:
Anthony LC
2024-08-29 16:42:39 +02:00
committed by Anthony LC
parent 1ff3d9c54e
commit 38b32c1227

View File

@@ -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