記事の目的
自分用の備忘録。
AWSのECR(Elastic Conatiner Registry)へDocker imageをpushする際に詰まった。
$ docker push <id>.dkr.ecr.region.amazonaws.com/<repository:tag>
The push refers to repository [aws_account_id.dkr.ecr.region.amazonaws.com/<repository:tag>]
************: Retrying in 1 second
************: Retrying in 1 second
...
...
************: Waiting
EOF
確認項目
エラーが起きた時に確認すべきは以下
- ユーザのECR関連の権限が十分である
- configで権限を持つユーザが正しく指定されている
- 指定したregionにpush先のrepositoryが存在する
自分の場合は、権限が不足していた。やや過剰気味ではあるが、AmazonEC2ContainerRegistryFullAccess
を付与することで解決。