Fix regression in handling of NotFound err during startup

Signed-off-by: Deep Debroy <ddebroy@docker.com>
This commit is contained in:
Deep Debroy 2019-08-08 16:50:25 -07:00
parent 150530564a
commit 4d5b6260bc
1 changed files with 1 additions and 1 deletions

View File

@ -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
}