Describe what --health-interval does in docker-smoke on current Docker (closes #132) #137

Merged
clawbot merged 1 commits from issue-132-docker-smoke-health-interval into next 2026-09-28 15:48:53 +02:00
+4 -2
View File
@@ -16,8 +16,10 @@ main() {
# removed on exit. # removed on exit.
key="$(head -c 32 /dev/urandom | base64)" key="$(head -c 32 /dev/urandom | base64)"
# --health-interval=1s overrides the image's 30s interval so the # Docker 25 and later probe every 5 seconds during the image's
# first probe does not use up the whole wait. # 10-second start period. --health-interval=1s makes it probe every
# second after that instead of every 30, so a slow start still shows
# as healthy within the 30-second wait.
cid="$(docker create --health-interval=1s \ cid="$(docker create --health-interval=1s \
-e PIXA_SIGNING_KEY="$key" "$("$SCRIPT_DIR/projectname")")" -e PIXA_SIGNING_KEY="$key" "$("$SCRIPT_DIR/projectname")")"
# Remove the container on any exit; turning signals into exit makes # Remove the container on any exit; turning signals into exit makes