I can not retrieve my ECR images using Portainer WEB UI or API.
i tried with API like the step below:
Step:
curl --request POST --insecure --write-out "%{http_code}" \
--url 'https://localhost:9443/api/endpoints/1/docker/images/create?fromImage=aws_account.dkr.ecr.us-east-1.amazonaws.com/image:tag' \
--header 'X-Registry-Auth: eyJyZWdpc3RyeUlkIjoxfQ==' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbG****' \
--header 'X-PortainerAgent-Target: $nodename' \
--data '{"fromImage":"aws_account.dkr.ecr.us-east-1.amazonaws.com/image:tag"}'
But always i got this boring message:
“Head https://.dkr.ecr.eu-central-1.amazonaws.com/v2/: no basic auth credentials”
What can i do?