2020/12/18_push docker image to aws
push docker images to Amazon ECR in Windows
install aws CLI 2
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-cliv2.html
aws configure
aws configureremove .docker/config.json line if have "credsStore": "wincred"
use aws password to login docker
aws ecr get-login-password --region region | docker login --username AWS --password-stdin accountid.dkr.ecr.region.amazonaws.comaws ecr create-repository --repository-name namedocker push aws_account_id.dkr.ecr.region.amazonaws.com/imagenameLast updated
Was this helpful?