diff --git a/registry/storage/blobwriter.go b/registry/storage/blobwriter.go index 7f280d366..418df8188 100644 --- a/registry/storage/blobwriter.go +++ b/registry/storage/blobwriter.go @@ -56,6 +56,8 @@ func (bw *blobWriter) Commit(ctx context.Context, desc distribution.Descriptor) return distribution.Descriptor{}, err } + bw.Close() + canonical, err := bw.validateBlob(ctx, desc) if err != nil { return distribution.Descriptor{}, err