Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
New command for AWS CLI v2 to replace `aws ecr get-login` of AWS CLI v1

Encouraged by DockerCon 2020, I'm tackling again getting a flask app running on AWS EC2, but this time I don't want to touch the AWS dashboard. I'd like to stay entirely on the command line (osx terminal).

This fine tutorial describes how to build an image and run it on AWS ECR, apparently itself ultimately running behind the scenes on an EC2 instance.

I am guessing that the beginning of the translation to AWS CLI v2 of

v1: aws ecr get-login --region us-east-1 --no-include-email

is

v2: aws ecr get-login-password --region us-east-1

The v1 command apparently produced a string properly formatted for subsequent running. (Good riddance, cutting and pasting would not yield a reliable or a customizable CLI.)

The v2 replacement produces a long password for a subsequent command.

Which command(s) in v2 fully replace v1's aws ecr get-login?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

According to the documentation this can be replaced by running

aws ecr get-login-password | docker login --username AWS --password-stdin MY-REGISTRY-URL

Regarding the --no-include-email the documentation states the following

You must specify --no-include-email if you're using Docker version 17.06 or later. The default behavior is to include the '-e' flag in the 'docker login' output.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda