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

【小ネタ】Docker17.06以上からAmazon ECRへのdockerログインコマンドが変わった

More than 1 year has passed since last update.

AWSから案内が来ているが、Dockerエンジンの17.06以降からECR(Amazon EC2 Container Registry)へのdocker loginのコマンドが変わったので簡単なメモ

docker for macのstableが17.06になったのでそこそこ需要ありそう。

要約

  • Emailのオプション(-e)が必須になったので、つけない場合は明示的に[--no-include-email]をつけてねって話

dockerバージョンの確認

$ docker --version
Docker version 17.06.0-ce, build 02c1d87

ECRへのログイン

##17.05以下のコマンド $は式展開なので必要です
##これまでのコマンドだとemailフラグないと怒られます
$(aws ecr get-login --region ap-northeast-1)
unknown shorthand flag: 'e' in -e
See 'docker login --help'.


##17.06以上
##これでOK --no-include-emailが必要
$(aws ecr get-login --region ap-northeast-1 --no-include-email)

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
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