An Interest In:
Web News this Week
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
November 14, 2021 07:38 pm GMT
Original Link: https://dev.to/icncsx/uploading-docker-images-to-aws-ecr-dgp
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To