#author("2020-04-13T05:37:27+00:00","default:wikiadmin","wikiadmin")
#author("2020-04-13T06:14:12+00:00","default:wikiadmin","wikiadmin")
-Docker Repository 500Mまで無料

#contents



*参考ページ [#y94a3f2b]

https://dev.classmethod.jp/articles/push-docker-image-to-ecr-with-cli/

https://y-ohgi.com/introduction-terraform/laravel/ecr/

*ECR操作 aws cli [#gf47fc9b]

**ECR 作成 [#t5a6bee3]

-IAMにAmazonEC2ContainerRegistryFullAccessを付与して実験
-バグか--region付けないとエラーになった

 aws ecr create-repository --repository-name test-ecr --region=ap-northeast-1
 aws ecr describe-repositories --query 'repositories[].repositoryName'

**ECRログイン [#y138ea58]

-まずはログイン情報を表示させるため以下のコマンド実施

 aws ecr get-login --region ${AWS_REGION} --no-include-email


-上記のコマンドで以下のコマンドが出るのでログインする。

 docker login -u AWS -p 上記の出力 https://リポジトリID.dkr.ecr.ap-northeast-1.amazonaws.com


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS