Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 14, 2021 07:38 pm GMT

Uploading Docker Images to AWS ECR

AWS

Create an ECR Repo

aws ecr create-repository --repository-name <name>

Log-in to ECR

aws ecr get-login-password --region region | docker login --username AWS --password-stdin <registry_id>.dkr.ecr.<region>.amazonaws.com

Tag your image

Tag your image with the Amazon ECR registry, repository, and optional image tag name combination to use. This is important if we want to push to ECR and not DockerHub.

docker tag <image_id> <registry_id>.dkr.ecr.region.amazonaws.com/<repo_name>:<tag>

Upload image to ECR

docker push <registryId>.dkr.ecr.<region>.amazonaws.com/<repo>:<tag>

Original Link: https://dev.to/icncsx/uploading-docker-images-to-aws-ecr-dgp

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To