AWS ECR AND ECS
Difference between Docker and Amazon Elastic Container Registry (ECR): Is Docker superior?
How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?
ECS vs EKS
Videos
Hey! I'm have a Github action workflow that builds my project to a docker image and uploads it to ECR and the re-deploys ECS to user the new images.
Where in this workflow/AWS setup do I need to provide my env-variables?
During the image build on Github or in the ECR task-def?
Created a new container on AWS Lightsail. Need to understand if there are two ways to deploy a container through their menu options: Deployments or Images?
Are Docker and ECR competing products? Is Docker superior to ECR? The reason is it appears AWS LIghtsail itself has made apparently mandatory to use Docker if images option chosen.
Also when Deployments menu clicked:
"Enter the image reference from a public registry, such as DockerHub."
So they are mentioning DockerHub and not their own ECR!
Update: On checking AWS products under Containers:
Elastic Container Registry
Elastic Container Service
Elastic Kubernetes Service
Red Hat OpenShift Service on AWS
Is it that with Elastic Container Registry, the image needs to be uploaded to a hosting service such as EC2 but with Elastic Container Service, the hosting too included with the image?
Took help of Gemini which seems to provide a userful reply:
You've got the right idea about the difference between Elastic Container Registry (ECR) and Elastic Container Service (ECS) on AWS:
-
Elastic Container Registry (ECR): This is a container image storage service.expand_more Think of it like a secure, private Docker Hub for your container images. You can push your built container images to ECR repositories, and then control access to those repositories using IAM policies.expand_more **ECR doesn't include any hosting functionality.**exclamation
-
Elastic Container Service (ECS): This is a container orchestration service.expand_more Imagine ECS as a conductor for your containerized applications. It allows you to define how your containers run, on which EC2 instances, and how they scale.expand_more **ECS integrates with ECR to pull container images and then runs them on your chosen infrastructure.**expand_more
Here's an analogy:
-
ECR: Like a secure photo library where you store your digital images.
-
ECS: Like a slideshow software that can display your images on a screen, manage transitions, and handle playback.
For deployment with ECS, you typically wouldn't upload the image directly to an EC2 instance. Instead, you'd push it to ECR and then configure ECS to pull the image from ECR when launching your containers.expand_more This keeps your images separate from your running application and makes them easier to manage.