In this step, we will push the Docker image to the Amazon Elastic Container Registry (ECR) service.
Amazon ECR is a fully managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images. Amazon ECR is integrated with Amazon Elastic Container Service (ECS), simplifying your development to production workflow.
Go to the ECR service.

Choose Create

Enter the repository name docker-container-01 and choose Create

Finish creating the repository

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

aws --version

aws configure
AWS Access Key ID [None]: EXAMPLE
AWS Secret Access Key [None]: EXAMPLE
Default region name [None]: us-east-1
Default output format [None]: json

You will see the commands to push the Docker image to the repository. Run the commands in the Terminal at the root directory of the project.

Run docker build -t docker-container-01 .

You can use docker images to review the images that have been built

After the build completes, tag your image so you can push the image to our repository

Push your image to the repository

Reload the ECR dashboard and you will see the image has been pushed to the repository
