Skip to content

Commit

Permalink
Merge pull request #2434 from giuseppe/no-kill-error
Browse files Browse the repository at this point in the history
linux: skip errors from the runtime kill
  • Loading branch information
rhatdan authored Jul 14, 2020
2 parents 0bad47c + ddf7f01 commit d2e0cd8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions run_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,8 @@ func runUsingRuntime(isolation Isolation, options RunOptions, configureNetwork b
stopped := false
defer func() {
if !stopped {
err2 := kill.Run()
if err2 != nil {
if err == nil {
err = errors.Wrapf(err2, "error stopping container")
} else {
logrus.Infof("error stopping container: %v", err2)
}
if err2 := kill.Run(); err2 != nil {
logrus.Infof("error stopping container: %v", err2)
}
}
}()
Expand Down

0 comments on commit d2e0cd8

Please sign in to comment.