在存储库之间复制Docker映像 [英] Copy docker image between repositories

查看:77
本文介绍了在存储库之间复制Docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个私有docker存储库.有什么方法可以将一个映像从一个存储库复制到另一个存储库?

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

推荐答案

您可以拉取图像,对其进行标记,然后将其推送到新的注册表中.

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

示例:

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

这篇关于在存储库之间复制Docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆