https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/get-login-password.html
- aws configure
1 2 3 4 5 | $ aws configure AWS Access Key ID [********************]: AWS Secret Access Key [*******************]: Default region name [None]: ap-northeast-1 Default output format [None]: |
- 確認
1 2 | $ aws ecr get-login-password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
- get-login-password
1 2 | $ aws ecr get-login-password | docker login --username AWS --password-stdin xxxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com Login Succeeded |
- get-login-password(profile指定する場合)
1 2 | $ aws ecr get-login-password --profile hoge | docker login --username AWS --password-stdin xxxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com Login Succeeded |
Was this helpful?
1 / 1
1989年生まれのSRE。ホスティングから大規模なアドテクなどのインフラエンジニアとして携わる。現在はサービスの信頼性向上、DevOps、可用性、レイテンシ、パフォーマンス、モニタリング、オブザーバビリティ、緊急対応、AWS/Azureでのインフラ構築、Docker開発環境の提供、Kubernetes保守、インフラコード化、新技術の検証、リファクタリング、セキュリティ強化などを担当している。個人事業主では数社サーバー保守とベンチャー企業のSREインフラコンサルティングやMENTA/CloudTech Academyで未経験者にインフラのコーチング/コミュニティの運用を実施している。また、「脆弱性スキャナVuls」のOSS活動もしており、自称エバンジェリスト/技術広報/テクニカルサポート/コントリビュータでもある。