In this story, I will show you how to create and upload a Docker image from your computer to Amazon Elastic Container Registry (ECR) and Amazon Elastic Container Service (ECS) and run it on Fargate. You will create a Target group and an Application Load Balancer (ALB) that will act as a load balancer and provide an additional layer of protection for the application. Before creating the ALB, you will create Security Groups for ECS and ALB.

Install Docker
I will show you how to install Docker on Macbook (My Macbook is M1).
Go here and choose Docker Desktop for Mac with Apple silicon, If you have Intel chip choose Docker Desktop for Mac with Intel chip.
Beginning with Docker Desktop 4.3.0, we have removed the hard requirement to install Rosetta 2. There are a few optional command line tools that still require Rosetta 2 when using Darwin/AMD64. See Known issues. However, to get the best experience, we recommend that you install Rosetta 2. To install Rosetta 2 manually from the command line, run the following command: