Context
Dockerfiles can have the HEALTHCHECK directive (see documentation), and the Docker Engine API has a Healthcheck field when creating a container to override the container's healthcheck:

When set, the container's status will remain in starting until the check succeeds, and the container's status becomes healthy. If the healthcheck fails until the start period is expired, the status become unhealthy.
This allows Docker Compose to implement the depends_on property to wait for other containers to be healthy (or running if no healthcechk is set).
Feature Request
The agent should allow the user to set the container's healthcheck (because not many Docker images use the HEALTHCHECK directive), and then provide a depends_on field to wait for dependencies to be healthy or running.
Context
Dockerfiles can have the
HEALTHCHECKdirective (see documentation), and the Docker Engine API has aHealthcheckfield when creating a container to override the container's healthcheck:When set, the container's status will remain in
startinguntil the check succeeds, and the container's status becomeshealthy. If the healthcheck fails until the start period is expired, the status becomeunhealthy.This allows Docker Compose to implement the
depends_onproperty to wait for other containers to be healthy (orrunningif no healthcechk is set).Feature Request
The agent should allow the user to set the container's healthcheck (because not many Docker images use the
HEALTHCHECKdirective), and then provide adepends_onfield to wait for dependencies to be healthy or running.