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…


This content originally appeared on DEV Community and was authored by DH Kim

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>


This content originally appeared on DEV Community and was authored by DH Kim


Print Share Comment Cite Upload Translate Updates
APA

DH Kim | Sciencx (2021-11-14T19:38:55+00:00) Uploading Docker Images to AWS ECR. Retrieved from https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/

MLA
" » Uploading Docker Images to AWS ECR." DH Kim | Sciencx - Sunday November 14, 2021, https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/
HARVARD
DH Kim | Sciencx Sunday November 14, 2021 » Uploading Docker Images to AWS ECR., viewed ,<https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/>
VANCOUVER
DH Kim | Sciencx - » Uploading Docker Images to AWS ECR. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/
CHICAGO
" » Uploading Docker Images to AWS ECR." DH Kim | Sciencx - Accessed . https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/
IEEE
" » Uploading Docker Images to AWS ECR." DH Kim | Sciencx [Online]. Available: https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/. [Accessed: ]
rf:citation
» Uploading Docker Images to AWS ECR | DH Kim | Sciencx | https://www.scien.cx/2021/11/14/uploading-docker-images-to-aws-ecr/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.