Copy docker image from one AWS ECR repo to another

依然范特西╮ 提交于 2020-06-11 16:18:44

问题


We want to copy a docker image from non-prod to prod ECR account. Is it possible without pulling, retaging and pushing it again.


回答1:


No you have to run these commands

docker login OLD_REPO
docker pull OLD_REPO/IMAGE:TAG
docker tag OLD_REPO/IMAGE:TAG NEW_REPO/IMAGE:TAG
docker login NEW_REPO
docker push NEW_REPO/IMAGE:TAG


来源:https://stackoverflow.com/questions/53333302/copy-docker-image-from-one-aws-ecr-repo-to-another

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