Error pulling ECR Docker images via Greengrass V2 component recipe

0

Hi,

Pull Docker image from AWS ECR via Docker component recipe's install script fails with the following error-
"Error: Cannot perform an interactive login from a non TTY device"

Does AWS Greengrass V2 only support using Docker images pulled from S3?

Thanks,
Kunal

kunupat
posta 3 anni fa646 visualizzazioni
2 Risposte
0

We fixed this error by changing the install script like below-

docker login -u AWS -p $(aws ecr get-login-password --region us-east-1) <YOUR-AWS-ACCOUNT-ID>.dkr.ecr.us-east-1.amazonaws.com && docker pull <YOUR-AWS-ACCOUNT-ID>.dkr.ecr.us-east-1.amazonaws.com/<YOUR-CONTAINER>:latest

Thanks,
Kunal

kunupat
con risposta 3 anni fa
0

Hi @kunupat

Please add that aws.greengrass.TokenExchangeService is required to have this working...

Thanks a lot

Edited by: Michaelfi on Feb 13, 2021 9:32 AM

con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande