I created a component using "Recipe as YAML"
---
RecipeFormatVersion: '2020-01-25'
ComponentName: com.example.MyPrivateDockerComponent
ComponentVersion: '1.0.0'
ComponentDescription: 'A component that runs a Docker container from a private Amazon ECR image.'
ComponentPublisher: Amazon
ComponentDependencies:
aws.greengrass.DockerApplicationManager:
VersionRequirement: ~2.0.0
aws.greengrass.TokenExchangeService:
VersionRequirement: ~2.0.0
Manifests:
- Platform:
os: all
Lifecycle:
Run: docker run <accountID>.dkr.ecr.us-east-1.amazonaws.com/demo:latest
Artifacts:
- URI: "docker:<accountID>.dkr.ecr.us-east-1.amazonaws.com/demo:latest"
i have tried to install docker-ce docker-ce-cli by using
Install:
RequiresPrivilege: true
Script: apt-get install docker-ce docker-ce-cli containerd.io
after component created i tried to deploy it in core but it is showing:-
FAILED_NO_STATE_CHANGE: Failed to download artifact name: 'docker:<accountID>.dkr.ecr.us-east-1.amazonaws.com/demo:latest' for component com.example.Test7-1.0.0, reason: Failed to get auth token for docker login
Hi, thanks for response i have provided Role to greengrass device the same error is showing after that also