Amazon Elastic Container Registry (ECR) is a container registry service where you store, manage, share, and deploy your container images (like DockerHub). Consider it as npmjs of containers instead of JS packages.
If you don't have an existing dockerized application. Clone this sample nodejs application to test things out.
Select Private or Public
Give any meaningful name
When enabled, it will prevent tags from being overwritten by new pushes (when pushed with same tags)
Enable to use AWS KMS for encryption
Now we need to use these commands one by one to build, tag and push our container image. But before proceeding make sure you have the latest version of AWS CLI installed.
Use the following command to check that AWS CLI is correctly installed on your system.
Now go back to your terminal and enter the following command
Once aws cli has been configured, now we can run the push commands. Open up the terminal and make sure you are inside the app directory. Run each command shown in the popup opened up by clicking the "View push commands" button. Please note that the commands in the screenshot could be different than what you see in your popup and it's totally fine.