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>
Top comments (0)