Fix healthcheck parser nil pointer error

This commit is contained in:
Hang Yan
2018-02-09 11:10:03 +08:00
parent f857afad1c
commit b8f1707d30
5 changed files with 235 additions and 1 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func parseHealthCheck(composeHealthCheck types.HealthCheckConfig) (kobject.Healt
interval = int32(parse.Seconds())
}
if *composeHealthCheck.Retries != 0 {
if composeHealthCheck.Retries != nil {
retries = int32(*composeHealthCheck.Retries)
}