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

Difficulty Level
Beginner
Prerequisites
none
Lab Duration
60 Min
About Lab
Overview:
This lab walks you through the steps to create an ECS Cluster with t2.micro instance type as container instance. 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.
What Will You Learn?
Upon completion of this lab you will be able to:
- Create and launch Amazon ECS Cluster.
- Create an IAM Policy and IAM Role.
- Create an ECR repository.
- Push the custom image to the ECR repository.
Prerequisites:
No prior experience is required for performing this lab.
Lab Steps:
1. Starting a lab
- Every AWS lab on the QwikSkills platform has a uniform user interface. You will see the below screen whenever you open up any lab.
- The blue-colored “Start Lab” button will set up the temporary username and password and assign the required cloud permissions in the background. Click on the button to start the lab.
2. Opening AWS Portal
- After you have clicked the start button, the cloud environment is created for the lab and you can use your temporary AWS cloud interface using the provided username and password shown on the