Help us understand the problem. What is going on with this article?

ECRへdockerイメージをプッシュする

前提

  • AWSCLIのプロファイルに設定しているロールにECRへのプッシュ権限が付与されていること

プッシュ手順

  1. 既存のdockerイメージをプッシュ対象のECRのリポジトリ名でタグ付けする

    docker tag [イメージ名]:[タグ] ************.dkr.ecr.ap-northeast-1.amazonaws.com/[イメージ名]:[タグ]
    
  2. ECRにログインする

    aws ecr get-login --region [リージョン名] --profile [プロファイル名] --no-include-email
    
  3. ログイン時に出力されたコマンドをそのまま実行する

    docker login -u AWS -p ....
    
  4. プッシュが成功する

    docker push ************.dkr.ecr.ap-northeast-1.amazonaws.com/[イメージ名]:[タグ]
    The push refers to repository [************.dkr.ecr.ap-northeast-1.amazonaws.com/[イメージ名]:[タグ]
    2fa8ef43ad02: Pushed
    86b4af74de0a: Pushed
    22eb95f4fc93: Pushed
    994608ddeff8: Pushed
    9b45b652ddec: Pushed
    bab15691846d: Pushed
    0981bda35722: Pushed
    7c936d88235a: Pushed
    6a0acc9d77fd: Pushed 
    1f3fe4130dc5: Pushed 
    03901b4a2ea8: Pushed 
    latest: digest: sha256:2b8dc8ea58fea30fb7be0d7f1bf6182f07336e4191887dc503f26af440211238 size: 2617
    
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした