Healthcheck start_interval
is silently ignored when start_period
is zero
#49900
Labels
docs/revisit
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
status/0-triage
Description
Redirected from docker/compose#12782 . See this issue for full information, reproduction and docker/docker compose versions.
@ndeloof added:
This bug is related to this feature request: #48874
Also worth mentioning findings by @MrQubo:
Adding
start_period
together withstart_interval
works as expected.Reproduce
See the linked issue.
Expected behavior
start_interval
should be used for the first health check, instead ofinterval
docker version
Client: Version: 28.0.4 API version: 1.48 Go version: go1.23.7 Git commit: b8034c0 Built: Tue Mar 25 15:07:48 2025 OS/Arch: windows/amd64 Context: desktop-linux Server: Docker Desktop 4.40.0 (187762) Engine: Version: 28.0.4 API version: 1.48 (minimum version 1.24) Go version: go1.23.7 Git commit: 6430e49 Built: Tue Mar 25 15:07:22 2025 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.26 GitCommit: 753481ec61c7c8955a23d6ff7bc8e4daed455734 runc: Version: 1.2.5 GitCommit: v1.2.5-0-g59923ef docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: