diff --git a/components/engine/daemon/health.go b/components/engine/daemon/health.go index 66fe5e299a..b9d74e2690 100644 --- a/components/engine/daemon/health.go +++ b/components/engine/daemon/health.go @@ -251,7 +251,10 @@ func (d *Daemon) initHealthMonitor(c *container.Container) { // This is needed in case we're auto-restarting d.stopHealthchecks(c) - if c.State.Health == nil { + if h := c.State.Health; h != nil { + h.Status = types.Starting + h.FailingStreak = 0 + } else { h := &container.Health{} h.Status = types.Starting c.State.Health = h