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>
This commit is contained in:
parent
150530564a
commit
4d5b6260bc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue