How to deploy a Docker Image on AWS and Run it on Fargate
<p>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.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*7_cMjViX96NRvAVwvd1JWw.png" style="height:368px; width:700px" /></p>
<h1>Install Docker</h1>
<p>I will show you how to install Docker on Macbook (My Macbook is M1).</p>
<p>Go <a href="https://docs.docker.com/desktop/install/mac-install/" rel="noopener ugc nofollow" target="_blank">here</a> and choose <code>Docker Desktop for Mac with Apple silicon</code>, If you have Intel chip choose <code>Docker Desktop for Mac with Intel chip</code>.</p>
<p>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:</p>
<p><a href="https://srebreni3.medium.com/how-to-deploy-a-docker-image-to-aws-and-run-it-on-fargate-13f76b0277b3"><strong>Read More</strong></a></p>