Do not stop daemon from booting if io.EOF on loading image
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
79d47c5b96
commit
27c2368599
1 changed files with 5 additions and 1 deletions
|
@ -182,7 +182,11 @@ func (graph *Graph) restore() error {
|
|||
if graph.driver.Exists(id) {
|
||||
img, err := graph.loadImage(id)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not restore image %s: %v", id, err)
|
||||
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)
|
||||
continue
|
||||
}
|
||||
graph.imageMutex.Lock(img.Parent)
|
||||
graph.parentRefs[img.Parent]++
|
||||
|
|
Loading…
Add table
Reference in a new issue