From 2c3d4a7f15864df7cd9a0e7e8def4f2d45feb738 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 (cherry picked from commit eaa4047792d2495276383332c4ad4c573e5e8275) --- graph/graph.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/graph/graph.go b/graph/graph.go index 628954039..ac7f0a1a2 100644 --- a/graph/graph.go +++ b/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)