mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't restore image if layer does not exist
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
bbd9b7ffdf
commit
6903ca89af
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ func (is *store) restore() error {
|
||||||
}
|
}
|
||||||
l, err = is.lss[img.OperatingSystem()].Get(chainID)
|
l, err = is.lss[img.OperatingSystem()].Get(chainID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err == layer.ErrLayerDoesNotExist {
|
||||||
|
logrus.Errorf("layer does not exist, not restoring image %v, %v, %s", dgst, chainID, img.OperatingSystem())
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue