registry-proxy alpine-slim doesnt have curl need use wget (#22550)

pull/22558/head
Medya Ghazizadeh 2026-01-25 13:32:25 -08:00 committed by GitHub
parent 2868a87393
commit 20988173eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ sed -e "s/%HOST%/$REGISTRY_HOST/g" \
</etc/nginx/conf.d/default.conf.in >/etc/nginx/conf.d/default.conf
# wait for registry to come online
while ! curl -sS "$REGISTRY_HOST:$REGISTRY_PORT" &>/dev/null; do
while ! wget -q --spider "$REGISTRY_HOST:$REGISTRY_PORT" &>/dev/null; do
printf "waiting for the registry (%s:%s) to come online...\n" "$REGISTRY_HOST" "$REGISTRY_PORT"
sleep 1
done