瀏覽代碼

Merge pull request #17695 from runcom/restore-images-log

graph: do not error out if images can't be restored
David Calavera 9 年之前
父節點
當前提交
0cdc96cd8f
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      graph/graph.go

+ 1 - 4
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)