Skip to content

Commit

Permalink
Merge pull request #17629 from tonistiigi/kill-autorestart-fix
Browse files Browse the repository at this point in the history
Fix race causing autorestart turning off on restart
  • Loading branch information
calavera committed Nov 3, 2015
2 parents 43ae137 + b8aaa4b commit 8d56954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (container *Container) Stop(seconds int) error {
// 3. If it doesn't, then send SIGKILL
if err := container.Kill(); err != nil {
container.WaitStop(-1 * time.Second)
return err
logrus.Warn(err) // Don't return error because we only care that container is stopped, not what function stopped it
}
}

Expand Down

0 comments on commit 8d56954

Please sign in to comment.