Skip to content

✨ Healthcheck and depends_on #179

@linkdd

Description

@linkdd

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:

Image

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions