mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user