n
n
notebook
Search…
2020/12/18_push docker image to aws
push docker images to Amazon ECR in Windows
  • install aws CLI 2
  • aws configure
1
aws configure
Copied!
remove .docker/config.json line if have "credsStore": "wincred"
  • use aws password to login docker
1
aws ecr get-login-password --region region | docker login --username AWS --password-stdin accountid.dkr.ecr.region.amazonaws.com
Copied!
1
aws ecr create-repository --repository-name name
Copied!
1
docker push aws_account_id.dkr.ecr.region.amazonaws.com/imagename
Copied!
Copy link