Support Documents
No data found.

Create a Docker container using Dockerfile and store the image in ECR

Lab Details

  1. This lab walks you through the steps to create an ECS Cluster with t2.micro instance type as container instance.

  2. You will practice using Amazon Elastic Container Registry's repository to push a custom docker image created using Dockerfile. You will also learn how to push the image to the ECR repository.

  3. Duration: 60 minutes

  4. AWS Region: US East (N. Virginia) us-east-1

Architecture Diagram

Task Details

  1. Launching Lab Environment

  2. Create a Security Group for the ECS Cluster

  3. Create a Key Pair for the EC2 instances, inside the ECS Cluster

  4. Launching an ECS Cluster

  5. Navigate to the container instance, copy the public IP required for SSH.

  6. SSH into the underlying EC2 instance.

  7. Create a Dockerfile and build a docker image.

  8. Create a repository in ECR and run the push commands.

  9. Validation of the lab

Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses