mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix regression in handling of NotFound err during startup
Signed-off-by: Deep Debroy <ddebroy@docker.com>
(cherry picked from commit 4d5b6260bc
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
305b2416ea
commit
685565ad18
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue