Created
October 19, 2020 16:39
-
-
Save rafamdr/5089f3c212417d3df8b666104fcf0e29 to your computer and use it in GitHub Desktop.
Bash cmds to move AWS ECR image from one account to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(aws ecr get-login --no-include-email --region us-east-1 --profile account1) | |
| docker pull 000000000001.dkr.ecr.us-east-1.amazonaws.com/some-repo:latest | |
| $(aws ecr get-login --no-include-email --region us-west-2 --profile account2) | |
| docker tag 000000000001.dkr.ecr.us-east-1.amazonaws.com/some-repo:latest 000000000002.dkr.ecr.us-west-2.amazonaws.com/some-repo | |
| docker push 000000000002.dkr.ecr.us-west-2.amazonaws.com/some-repo:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment