Merge pull request #46716 from akerouanton/fix-bad-condition

api: fix a nil check on the wrong var
This commit is contained in:
Paweł Gronowski 2023-10-25 10:57:27 +02:00 committed by GitHub
commit dcc80204bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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