mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #35533 from AliyunContainerService/supress-warning-healthcheck-none
Suppress warning when NONE was set for healthcheck
This commit is contained in:
commit
29d6aef393
1 changed files with 2 additions and 0 deletions
|
@ -254,6 +254,8 @@ func getProbe(c *container.Container) probe {
|
|||
return &cmdProbe{shell: false}
|
||||
case "CMD-SHELL":
|
||||
return &cmdProbe{shell: true}
|
||||
case "NONE":
|
||||
return nil
|
||||
default:
|
||||
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue