Getting an error that suggests a dependency between healthcheck start_interval and start_period

I am trying to up a docker-compose file with a bunch of services but getting

healthcheck.start_interval requires healthcheck.start_period to be set

If I remove healthcheck.start_interval or define healthcheck.start_period everything works but
what’s strange is that my colleagues (using Macs) are not getting it. They have a very close docker version number

I cannot find any evidence that requirement is enforced in the schema, so not sure where it is coming from.

I am on

docker version
Client:
Version: 27.5.1
API version: 1.47
Go version: go1.22.2
Git commit: 27.5.1-0ubuntu3~24.04.2
Built: Mon Jun 2 11:51:53 2025
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 27.5.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.2
Git commit: 27.5.1-0ubuntu3~24.04.2
Built: Mon Jun 2 11:51:53 2025
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.27
GitCommit:
runc:
Version: 1.2.5-0ubuntu1~24.04.1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:

docker compose version
Docker Compose version v2.37.3

Well, different versions may work differently. Probably based on changes around this issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.