Merge pull request #39703 from ddebroy/fix-39623
Fix regression in handling of NotFound err during startup ENGCORE-929
This commit is contained in:
commit
4cc9dc73ba
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ func (daemon *Daemon) restore() error {
|
||||||
}
|
}
|
||||||
if !alive && process != nil {
|
if !alive && process != nil {
|
||||||
ec, exitedAt, err = process.Delete(context.Background())
|
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)
|
logrus.WithError(err).Errorf("Failed to delete container %s from containerd", c.ID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue