diff --git a/cmd/oras/root/pull.go b/cmd/oras/root/pull.go index fb5d50e4f..844fd988b 100644 --- a/cmd/oras/root/pull.go +++ b/cmd/oras/root/pull.go @@ -231,6 +231,11 @@ func doPull(ctx context.Context, src oras.ReadOnlyTarget, dst oras.GraphTarget, for _, s := range nodes { if s.Annotations[ocispec.AnnotationTitle] == "" { if content.Equal(s, ocispec.DescriptorEmptyJSON) { + // empty layer + continue + } + if s.Annotations[ocispec.AnnotationTitle] == "" { + // unnamed layers are skipped skippedLayers++ } ss, err := content.Successors(ctx, fetcher, s)