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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠