I am using the cli and I want to push a docker image to AWS ECR. How can I do this? Thanks!
Asked
Active
Viewed 648 times
1 Answers
0
Start by generating your login command using the get-login-password function.
Once you have logged in via the command, you would tag the image using
docker tag hello-world:latest aws_account_id.dkr.ecr.us-east-1.amazonaws.com/hello-world:latest
Finally you can push a docker image running the below command
docker push aws_account_id.dkr.ecr.us-east-1.amazonaws.com/hello-world:latest
More information for pushing an image is available in this documentation.

Chris Williams
- 32,215
- 4
- 30
- 68