docs: minor improvements to the healthcheck section

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2023-11-27 14:08:17 +01:00
parent 7585d66a07
commit 5ede4c82ac
1 changed files with 11 additions and 8 deletions

View File

@ -1066,14 +1066,17 @@ windir=C:\Windows
### Healthchecks ### Healthchecks
``` The following flags for the `docker run` command let you control the parameters
--health-cmd Command to run to check health for container healthchecks:
--health-interval Time between running the check
--health-retries Consecutive failures needed to report unhealthy ```text
--health-timeout Maximum time to allow one check to run --health-cmd Command to run to check health
--health-start-period Start period for the container to initialize before starting health-retries countdown --health-interval Time between running the check
--health-start-interval Time between running the check during the start period --health-retries Consecutive failures needed to report unhealthy
--no-healthcheck Disable any container-specified HEALTHCHECK --health-timeout Maximum time to allow one check to run
--health-start-period Start period for the container to initialize before starting health-retries countdown
--health-start-interval Time between running the check during the start period
--no-healthcheck Disable any container-specified HEALTHCHECK
``` ```
Example: Example: