(dc dnode)
| 718 | } |
| 719 | |
| 720 | func (c *LocalCluster) killContainer(dc dnode) error { |
| 721 | ctx, cancel := context.WithTimeout(context.Background(), requestTimeout) |
| 722 | defer cancel() |
| 723 | if err := c.dcli.ContainerKill(ctx, dc.cid(), "SIGKILL"); err != nil { |
| 724 | return errors.Wrapf(err, "error killing container [%v]", dc.cname()) |
| 725 | } |
| 726 | return nil |
| 727 | } |
| 728 | |
| 729 | func (c *LocalCluster) HealthCheck(zeroOnly bool) error { |
| 730 | log.Printf("[INFO] checking health of containers") |