Amazon Elastic Container Registry (Amazon ECR) is an AWS-managed docker image registry service that is secure, scalable, and dependable. Amazon ECR uses AWS IAM to enable private repositories with resource-based permissions.
Firstly Configure Ur Aws Account On Terminal
Then Run The Command
#####################################################
aws ecr-public get-login-password --region us-east-1
#####################################################
***********************************
Phir AApko Ek Password Milega Usko Copy Karo And
#####################################################
docker login --username AWS --password <Password> public.ecr.aws/n0o6l0x7
Password Dalo
#####################################################
*************************************
Then Push The Image Into Docker Repo
######################################################
docker push public.ecr.aws/n0o6l0x7/ecr-demo:latest
Amazon Elastic Container Service is a Highly Scalable and High-Performance Container
Orchestration Service That Supports Docker Container and Allows You To Easily Run And
Scale Containerized Application On Aws.
Benefits :
Containers Without Infrastructure Management
Containerized Everything
Secure ( AApko Humesha Role Provide Krna Padega )
Performance At Scale
How its Works:
Build Container Images
Create Build And Push Your Images Into Docker Registry
Define Your Application
Select Container Images And Resources Needed For Your Application
Launch Containers
ECS Launch Containers For Your Application
Manage Containers
ECS Scales Your Application And Manage Your Containers For Availability
Credits: Google
Example :
Create Repository And Upload Docker Image
Create Cluster
Create Task Definition
Create Service And Run The Task
Test Ur Application
Amazon Web Services, a subsidiary of Amazon.com, provides a paid, subscription-based, on-demand cloud computing platform to individuals, businesses, and governments.
Cloud computing is the provision of computing power, database storage, applications, and other IT resources on a pay-as-you-go basis over the Internet through a cloud service platform.
Amazon Elastic Container Registry (ECR) is a secured AWS Docker registry service. Amazon ECR is a secure and trustworthy AWS service. It may be scaled up or down to meet your demands, just like any other cloud computing service. Amazon ECR employs AWS Identity and Access Management (IAM) to grant resource-based access to private Docker repositories. Docker's command line interface allows you to push, pull, and manage images.
Components of Amazon ECR:
Amazon ECR has the following components:
Credits: Google
All AWS accounts have access to Amazon ECR registries. The registry allows you to create image repositories and store those images as well.
Authentication token:
Before pushing and pulling images, the Docker client must authenticate with the Amazon ECR registry as her AWS user. The Amazon Web Services Command Line Interface (CLI) has a command called get-login that provides the user with credentials to pass to Docker.
Repository:
Docker images are included in the Amazon ECR image repository. Repository policy:
Repository policies allow users to control access to their repositories and the images they contain.
Photo:
A user can push or pull her Docker image to a repository very easily. Users can use images from the repository in their local system or Amazon ECS task definitions.
List Of Available Commands: