mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Added start period option to health check.
Signed-off-by: Elias Faxö <elias.faxo@gmail.com>
This commit is contained in:
@@ -94,6 +94,9 @@ func merge(userConf, imageConf *containertypes.Config) error {
|
||||
if userConf.Healthcheck.Timeout == 0 {
|
||||
userConf.Healthcheck.Timeout = imageConf.Healthcheck.Timeout
|
||||
}
|
||||
if userConf.Healthcheck.StartPeriod == 0 {
|
||||
userConf.Healthcheck.StartPeriod = imageConf.Healthcheck.StartPeriod
|
||||
}
|
||||
if userConf.Healthcheck.Retries == 0 {
|
||||
userConf.Healthcheck.Retries = imageConf.Healthcheck.Retries
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user