Skip to content

Commit

Permalink
Merge pull request moby#35533 from AliyunContainerService/supress-war…
Browse files Browse the repository at this point in the history
…ning-healthcheck-none

Suppress warning when NONE was set for healthcheck
  • Loading branch information
yongtang authored Nov 30, 2017
2 parents 88e36dc + e987c55 commit 29d6aef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29d6aef

Please sign in to comment.