Before we can push a Docker image to ECR, we need to create a repository. This repository will be private, requiring authentication and authorization.
In the main interface:
ECR
.Here, we’ll fill in some information:
imga/server
In the Encryption settings:
After creation, under Private Registry, you will see the repository we just created listed.
If you go into this repository, you won’t see any images yet.
Click View push commands, and you will see instructions on how to push a Docker image to ECR.
This includes commands for logging into Docker, obtaining the repository endpoint, building the image, tagging it, and finally pushing the image to the repository.