LoginSignup
1
1

More than 3 years have passed since last update.

Debian9でAWS ECR Loginが出来ない時の解決方法

Posted at

DebianでBuildしたDocker ImageをAWS ECRのレジストリーにあげようとした時、ECR Loginが出来ないことがあります。

OSとバージョンはDebian 9.9、aws cliはapt-get installで入れたものです。

# cat /etc/debian_version
9.9
# aws --version
aws-cli/1.11.13 Python/3.5.3 Linux/4.9.0-9-amd64 botocore/1.4.70

ECR Loginしようとすると以下のようにエラーが出て、ログインできません。

$(aws ecr get-login --region xxxx --no-include-email)
Unknown options: --no-include-email

解決方法は、pip3でawscliを最新バージョンにアップデートすることです。

# apt-get install python3-pip
# pip3 install --upgrade awscli
# aws --version
aws-cli/1.17.12 Python/3.5.3 Linux/4.9.0-9-amd64 botocore/1.14.12

この後、ECR Loginが出来ました。

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