mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
graph: do not error out if images can't be restored
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
0f41761290
commit
eaa4047792
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue