Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@TBNISTA

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

前提

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

プッシュ手順

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

    docker tag [イメージ名]:[タグ] ************.dkr.ecr.[リージョン名].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
    
0
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?