浏览代码

Merge pull request #39703 from ddebroy/fix-39623

Fix regression in handling of NotFound err during startup ENGCORE-929
Sebastiaan van Stijn 6 年之前
父节点
当前提交
4cc9dc73ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/daemon.go

+ 1 - 1
daemon/daemon.go

@@ -336,7 +336,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
 				}