我正在尝试从 artifactory 获取 Digest SHA 值,想知道如何获得它

问题描述 投票:0回答:0

在 Artifactory 中搜索包时,它有以下列: Version 资料库 消化 修改的 下载 X 射线状态

我正在尝试找到如何使用 cli 检索 DIGEST SHA 值。我尝试了多个命令但没有运气。我已经研究并尝试了多种方法,下面是我接近的命令,但它没有相同的值。

这是我试过的命令,sha值与artifactory中的DIGEST值不匹配。

curl -s -u username:password  -o abc.tar https://artifactory.com/artifactory/api/storage/x-a12345-docker-core-local/dev/<repo>/<tag> && shasum -a 256 abc.tar

我也试过这个命令,但我得到一个空白输出:

curl -s -u username:password -H "Accept: application/vnd.docker.distribution.manifest.v2+json" "https://artifactory.com/artifactory/api/storage/x-a12345-docker-core-local/dev/<repo>@<tag> | jq -r '.config.digest'

我需要获得 DIGEST SHA 值并且想知道任何人都可以提供帮助。谢谢!

artifactory jfrog-cli jfrog
© www.soinside.com 2019 - 2024. All rights reserved.