Liz*_* Qi 5 curl docker dockerfile docker-image
curl -H "Authorization: Bearer $BEARER" \
-H "Accept: application/vnd.docker.image.manifest.v2+json" \
https://registry-1.docker.io/v2/$NAME/manifests/sha256:3eb57a4024e69d05ace49be70ab9d13610cfe611a0191c7edc26f5a2b675e7b1
Run Code Online (Sandbox Code Playgroud)
以上是我使用的命令。我已经在标题中将 Accept 字段设置为模式版本 2清单媒体类型,但它仍然返回模式版本 1 的清单
小智 5
我相信 v2 架构的 Accept 类型是"application/vnd.docker.distribution.manifest.v2+json"
根据 docker 注册表代码确定的,请参阅:
归档时间: |
|
查看次数: |
1797 次 |
最近记录: |