Merge pull request #317 from thaJeztah/19.03_backport_fix_39623

[19.03 backport] Fix regression in handling of NotFound err during startup ENGCORE-929
This commit is contained in:
Andrew Hsu 2019-08-08 20:39:02 -07:00 committed by GitHub
commit 29fe4e58c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,7 +335,7 @@ func (daemon *Daemon) restore() error {
}
if !alive && process != nil {
ec, exitedAt, err = process.Delete(context.Background())
if err != nil {
if err != nil && !errdefs.IsNotFound(err) {
logrus.WithError(err).Errorf("Failed to delete container %s from containerd", c.ID)
return
}