Step1: Login To Your AWS account.
Step2: Now Under the Compute click on the EC2 Container Service.
Step3: Select both If you want to deploy the sample application & store images securely with Amazon ECR(EC2 Container Registry).
Note-: As of now we are not deploying any application so we have selected only the second option.
Step4: Specify your Repository Name & click on Next Step.
Step5: Install Docker & AWS CLI.Learn from the below links if you don’t know how to install Docker & AWS CLI.
Step6: Create IAM user, If you dont know how to create IAM user learn with the below link.
How To Create IAM User
Note-:Save the user credentials which will be used to retrieve the users credentials for docker login using AWS-CLI & you have to assign the required permission or rights to a user in order to take login.
Step7: Configure IAM user by firing the below command.
Step8: Learn how to Build, Tag & push Docker Image & click on Next Step.
Note-: If you don’t know how to Build, Tag & push Docker Image learn it by opening the below link.
Build Tag & Push Docker Image
Read all the steps carefully and note down all the commands for your future reference.
Step9: Now check repository, image is uploaded to the repository or not.
Note-: We have successfully uploaded the image to our repository named demo.