mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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