Add support for user-defined healthchecks #22719
This PR adds support for user-defined health-check probes for Docker containers. It adds a
When a container has a healthcheck specified, it has a health status in addition to its normal status. This status is initially
The options that can appear before
The health check will first run interval seconds after the container is started, and then again interval seconds after each previous check completes.
If a single run of the check takes longer than timeout seconds then the check is considered to have failed.
If the health state is
It takes retries consecutive failures of the health check for the container to be considered
For example, to check every five minutes or so that a web-server is able to serve the site's main page within three seconds:
The changes to "docker run" are described here:
The health status is also displayed in the
Description for the changelog: Add support for user-defined healthchecks