unix-使用curl或wget从工件下载Docker映像..

我们是否有任何选择/方式使用wget或curl下载docker镜像.
我的docker映像存在于Jfrog工件中.

问候,
罗希斯

最佳答案
首先,对Artifactory仓库的任何curl命令都需要您帐户的API密钥.参见“ How to use docker registry API with Artifactory Docker Repository when not using docker client?

you can use the following header: “X-JFrog-Art-Api” and pass the API key of the user to authenticate. The API key of the user can be retrieved from the “User Profile” page in Artifactory. Artifactory REST API supports three forms of authentication and you can use any one of them with the docker repository

其次,下载映像并非易事(因为您需要获取所有图层).
您可能有机会改编Moby Contrib脚本download-frozen-image-v2.sh

或者尝试docker-registry-debug,该命令将打印一个curl命令以获取图层,如explained here.

转载注明原文:unix-使用curl或wget从工件下载Docker映像.. - 代码日志