Can not Pull Images From ECR with Portainer

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?

Neither Portainer, nor ECR are a Docker product. You might want to ask this question in the Portainer forums.

A quick google search brought up this link as first result: https://www.portainer.io/blog/using-portainer-with-aws-elastic-container-registry.

Ok, Im going there.
Thank you very much!