Skip to content

Commit

Permalink
Merge pull request #9617 from vrothberg/fix-9588
Browse files Browse the repository at this point in the history
image removal: ignore unknown-layer errors
  • Loading branch information
openshift-merge-robot authored Mar 4, 2021
2 parents 87a78c0 + e43385e commit e4cf1d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/domain/infra/abi/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ func (ir *ImageEngine) Remove(ctx context.Context, images []string, opts entitie
report.Deleted = append(report.Deleted, results.Deleted)
report.Untagged = append(report.Untagged, results.Untagged...)
return nil
case storage.ErrImageUnknown:
// The image must have been removed already (see #6510).
case storage.ErrImageUnknown, storage.ErrLayerUnknown:
// The image must have been removed already (see #6510)
// or the storage is corrupted (see #9617).
report.Deleted = append(report.Deleted, img.ID())
report.Untagged = append(report.Untagged, img.ID())
return nil
Expand Down

0 comments on commit e4cf1d4

Please sign in to comment.