AWS Elastic Container Registry

AWS Elastic Container Registry

In this section, we will go through the process of building the application on Container and pushing the Docker image to the AWS Elastic Container Registry

Based on the resources prepared in the article Deploying the application on the Container

  1. We have created a Repository from AWS Elastic Container Registry

    • Then, select View push commands
    • Interface push commands, we choose macOS/Linux
    • Detailed steps to push images to AWS Elastic Container Registry

ECS Lab

  1. First, we will use the command to login:
aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 999999999999.dkr.ecr.ap-southeast-1.amazonaws.com
  • Next is to build Docker image
docker build -t aws-fcj-management .
  • Then, will assign a tag to the newly built image.
docker tag aws-fcj-management:latest 999999999999.dkr.ecr.ap-southeast-1.amazonaws.com/aws-fcj-management:latest

ECS Lab

  1. Finally, push the tagged image to AWS Elastic Container Registry
docker push 999999999999.dkr.ecr.ap-southeast-1.amazonaws.com/aws-fcj-management:latest

ECS Lab

  1. Upload image to AWS Elastic Container Registry successfully.

ECS Lab