Matt Madhavan
Matt Madhavan

Reputation: 21

Spotify Dockerfile Maven AWS ECR

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

Answers (1)

esboych
esboych

Reputation: 1085

Yes the process may seem a bit tricky at first. Here is briefly what you may want to do:

  • make sure you've set up a proper repo on ECR for your image.
  • 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

Related Questions