Created
October 15, 2021 10:02
-
-
Save ozgurozkok/3feaf86ca70281bf0b24f9a85aeb6a7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Deploy to AWS ECR | |
docker pull nginx | |
docker images | |
aws ecr create-repository --repository-name nginx | |
output for this | |
{ | |
"repository": { | |
"registryId": "aws_account_id", | |
"repositoryName": "nginx", | |
"repositoryArn": "arn:aws:ecr:us-east-1:aws_account_id:repository/nginx", | |
"createdAt": 1505337806.0, | |
"repositoryUri": "aws_account_id.dkr.ecr.us-east-1.amazonaws.com/nginx" | |
} | |
} | |
docker tag nginx:latest aws_account_id.dkr.ecr.us-east-1.amazonaws.com/nginx:latest | |
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/nginx | |
docker push aws_account_id.dkr.ecr.us-east-1.amazonaws.com/nginx:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment