Merge pull request #3672 from crosbymichael/kill-errors

Check for more kill error types
This commit is contained in:
Derek McGowan
2019-09-23 16:15:16 -07:00
committed by GitHub

View File

@@ -127,6 +127,7 @@ func checkKillError(err error) error {
}
if strings.Contains(err.Error(), "os: process already finished") ||
strings.Contains(err.Error(), "container not running") ||
strings.Contains(strings.ToLower(err.Error()), "no such process") ||
err == unix.ESRCH {
return errors.Wrapf(errdefs.ErrNotFound, "process already finished")
}