notebook
  • coding
    • 2016/11/03_sql optimization principle
    • 2017/08/19_docker for gitlab install
    • 2018/02/15_dotnet core
    • 2018/06/16_vs key
    • 2018/09/12_network protocol
    • 2018/10/23_Distributed service framework
    • 2018/10/24_knowledge
    • 2018/11/03_environment deployment
    • 2018/11/23_release nuget package
    • 2018/12/04_free https
    • 2020/04/29_EFmigrationCmdLine
    • 2020/12/18_push docker image to aws
    • 2022/12/16_HttpClient-multipart
    • 2023/02/17_postgresSql-function
    • 2023/03/09_dockerImages_deploy
    • 2023/04/08_word-helper
    • 2023/11/08_tableAndRowLock
  • living
  • playing
Powered by GitBook
On this page

Was this helpful?

  1. coding

2020/12/18_push docker image to aws

Previous2020/04/29_EFmigrationCmdLineNext2022/12/16_HttpClient-multipart

Last updated 4 years ago

Was this helpful?

push docker images to Amazon ECR in Windows

  • install aws CLI 2

  • aws configure

aws configure

remove .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.com
aws ecr create-repository --repository-name name
docker push aws_account_id.dkr.ecr.region.amazonaws.com/imagename
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-cliv2.html