api: fix a nil check on the wrong var
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
b4a08b3b7c
commit
70158284b7
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ func (s *containerRouter) postContainersCreate(ctx context.Context, w http.Respo
|
|||
}
|
||||
}
|
||||
|
||||
if hostConfig != nil && versions.LessThan(version, "1.44") {
|
||||
if config != nil && versions.LessThan(version, "1.44") {
|
||||
if config.Healthcheck != nil {
|
||||
// StartInterval was added in API 1.44
|
||||
config.Healthcheck.StartInterval = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue