Files
floci/docs/services
thejrose1984 d79719e61d fix(ecs): run the task definition's health check instead of the image's (#9851)
A container definition's healthCheck was stored and returned but never given to
Docker. The image's HEALTHCHECK ran instead and decided healthStatus and whether a
dependsOn HEALTHY condition was met, so a task whose dependency had its check only
in the task definition failed to start.

The definition's check is now set on container creation, with ECS's defaults
(interval 30, timeout 5, retries 3) for the members it leaves out, since Docker
would otherwise take them from the image. A definition without a healthCheck
creates the container with a NONE test, so the image's check doesn't run and
health stays UNKNOWN, as on ECS. ContainerSpec and ContainerBuilder gain an
optional health check; other services leave it unset and keep the image's.

Closes #9831
2026-11-30 15:42:38 -04:00
..