Merge pull request #296 from ijc/support-schema1-manifest
Swallow a NotFound error when deleting content, to support schema 1 m…docker-18.09
commit
cd6e788437
|
@ -258,7 +258,7 @@ func (p *puller) Snapshot(ctx context.Context) (cache.ImmutableRef, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, nl := range notLayerBlobs {
|
for _, nl := range notLayerBlobs {
|
||||||
if err := p.is.ContentStore.Delete(ctx, nl.Digest); err != nil {
|
if err := p.is.ContentStore.Delete(ctx, nl.Digest); err != nil && !errdefs.IsNotFound(err) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue