Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 4d5b626

Browse files
committed
Fix regression in handling of NotFound err during startup
Signed-off-by: Deep Debroy <[email protected]>
1 parent 1505305 commit 4d5b626

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

daemon/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (daemon *Daemon) restore() error {
336336
}
337337
if !alive && process != nil {
338338
ec, exitedAt, err = process.Delete(context.Background())
339-
if err != nil {
339+
if err != nil && !errdefs.IsNotFound(err) {
340340
logrus.WithError(err).Errorf("Failed to delete container %s from containerd", c.ID)
341341
return
342342
}

0 commit comments

Comments
 (0)