mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 05:07:22 +00:00
graph: do not error out if images can't be restored
Signed-off-by: Antonio Murdaca <runcom@redhat.com> (cherry picked from commit eaa4047792d2495276383332c4ad4c573e5e8275)
This commit is contained in:
committed by
Tibor Vass
parent
2c20ae1fef
commit
2c3d4a7f15
+1
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user