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

328
Visualizações
Using AWS ECR with portainer push/pull images not working

I'm having trouble getting portainer to work properly with AWS ECR. I got my images up and running on ECR, if I run my docker-compose with the command line via SSH it's working as expected. If i do a simple docker pull {myid}.dkr.ecr.eu-west-1.amazonaws.com/{repository} it's working also.

But if i try to go to the same image via the portainer GUI and hit pull/push i always got this message:

My repository settings: enter image description here At least with portainer i can have a good overview of my running container and available images, but it's a shame that, so far, i can't update them with the GUI. Usually when making an update, i push (from my local computer) and then in portainer i re-create the container and specify to pull the new image. Of course, as of now, i can't with the failing pull..

When using docker "cli" i can do whatever i want, push, pull and my docker-compose which is using my ECR images can run without issue.

Thanks in advance.

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

0

Unfortunatly nope, i'm using aws cli to do that with my npm tasks. If interested here it is: `

  "publish": "npm run _docker:build && npm run _aws:auth && npm run _aws:tag && npm run _aws:push && npm run _docker:prune",
  "_docker:build": "docker build -t *yourImageName* .",
  "_aws:auth": "aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin *yourID*.dkr.ecr.eu-west-1.amazonaws.com",
  "_aws:tag": "docker tag *yourImageName:latest* yourID.dkr.ecr.eu-west-1.amazonaws.com/*yourImageName*:latest",
  "_aws:push": "docker push *yourID*.dkr.ecr.eu-west-1.amazonaws.com/*yourImageNam*e:latest",
  "_docker:prune": "docker image prune -f"

`

over 4 years ago · Santiago Trujillo Relatório

0

I solved this problem by creating a cronjob on the server that runs the login script for the AWS ECR Repository (explained here) every 30 minutes or so. This way you don't need to add the registry in portainer.

You could retrieve the password throgh AWS CLI explained here and use this to login with portainer. But the reason this is a bad idea is because AWS resets the password twice a day so the login would only be valid for 12 hours.

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