Copy docker image between repositories

前端 未结 2 742
萌比男神i
萌比男神i 2021-02-12 21:47

I have 2 private docker repositories. Is any way how can I copy one image from one repository to the second one?

2条回答
  •  旧巷少年郎
    2021-02-12 22:05

    You can pull the image, tag it and push it to the new registry.

    Example:

    docker pull old-registry/app
    docker tag old-registry/app new-registry/app
    docker push new-registry/app
    

提交回复
热议问题