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
已提問 3 年前檢視次數 646 次
2 個答案
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
已回答 3 年前
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

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南