mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-22 16:56:09 +01:00
do not fail when container could't killed
This commit is contained in:
parent
86bd046deb
commit
97d108f415
2 changed files with 93 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ func (client dockerClient) StopContainer(c Container, timeout time.Duration) err
|
|||
log.Infof("Stopping %s (%s) with %s", c.Name(), c.ID(), signal)
|
||||
|
||||
if err := client.api.ContainerKill(bg, c.ID(), signal); err != nil {
|
||||
return err
|
||||
fmt.Errorf("Container %s (%s) could not be killed", c.Name(), c.ID())
|
||||
}
|
||||
|
||||
// Wait for container to exit, but proceed anyway after the timeout elapses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue