Reputation: 21
Has any one had luck in pushing a docker image to AWS ECR? If so pleas share the instructions.
Thanks Matt
Upvotes: 0
Views: 581
Reputation: 1085
Yes the process may seem a bit tricky at first. Here is briefly what you may want to do:
make your image tagged in AWS predefined format. Ie:
docker tag e9ae3c220b23 aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app
login to ECR. Ie:
eval $(aws ecr get-login --no-include-email --region <your-region>)
and now you are ready to push the image:
docker push aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app
The complete guide may provide more details.
Upvotes: 1