如何使用curl命令获取清单v2模式版本2

curl -H "Authorization: Bearer $BEARER" \ -H "Accept: application/vnd.docker.image.manifest.v2+json" \ https://registry-1.docker.io/v2/$NAME/manifests/sha256:3eb57a4024e69d05ace49be70ab9d13610cfe611a0191c7edc26f5a2b675e7b1 

以上是我使用的命令。 我已经将Accept字段设置为标题中的模式版本2清单媒体types,但仍然返回模式版本1的清单

我相信根据"application/vnd.docker.distribution.manifest.v2+json"registry代码,v2模式的Accepttypes是"application/vnd.docker.distribution.manifest.v2+json" ,请参阅:

https://github.com/docker/distribution/blob/f4b6fc8d681c42137b7d2bb544b087462bc34d47/manifest/schema2/manifest.go#L15