mirror of https://github.com/docker/docs.git
fix(healthcheck): extend start_period to 2m to clarify initialization grace period
Revised the start_period in the Docker healthcheck example to 2 minutes, to avoid confusion about the property's role. This change highlights the intended use of start_period as a grace period for container initialization. By setting start_period to a duration longer than the interval (1 minute and 30 seconds), it becomes clearer that health check failures during this initial period will not count towards the retries limit.
This commit is contained in:
parent
a805e0c69a
commit
6dce82c3af
|
@ -1252,7 +1252,7 @@ healthcheck:
|
|||
interval: 1m30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
start_period: 2m
|
||||
```
|
||||
|
||||
`interval`, `timeout` and `start_period` are specified as
|
||||
|
|
Loading…
Reference in New Issue