From 95685500833adb41b1d1fb8763e1cbbb788758a1 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 4 Nov 2015 19:20:12 +0100 Subject: [PATCH] graph: do not error out if images can't be restored Signed-off-by: Antonio Murdaca Upstream-commit: eaa4047792d2495276383332c4ad4c573e5e8275 Component: engine --- components/engine/graph/graph.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/engine/graph/graph.go b/components/engine/graph/graph.go index d6a600c5f1..3c863648dc 100644 --- a/components/engine/graph/graph.go +++ b/components/engine/graph/graph.go @@ -182,10 +182,7 @@ func (graph *Graph) restore() error { if graph.driver.Exists(id) { img, err := graph.loadImage(id) if err != nil { - if err != io.EOF { - return fmt.Errorf("could not restore image %s: %v", id, err) - } - logrus.Warnf("could not restore image %s due to corrupted files", id) + logrus.Warnf("ignoring image %s, it could not be restored: %v", id, err) continue } graph.imageMutex.Lock(img.Parent)