0
0

AWS ECRへのDocker imageのpush時に発生する問題

Posted at

記事の目的

自分用の備忘録。
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を付与することで解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0