Download docker image from artifactory using curl or wget..?

别来无恙 提交于 2019-12-21 17:32:27

问题


Do we have any option/way to download a docker image using wget or curl. My docker image is present in Jfrog artifactory.

Regards, Rohith


回答1:


First, any curl command to an Artifactory repo would need the API key of your account. See "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

Second, downloading an image is not trivial (as you need to get all the layers).
You might have some chance adapting the moby contrib script download-frozen-image-v2.sh

Or try docker-registry-debug which will print a curl command for fetching the layer, as explained here.



来源:https://stackoverflow.com/questions/49001798/download-docker-image-from-artifactory-using-curl-or-wget

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!