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:


curl --request POST --insecure --write-out "%{http_code}" \
--url 'https://localhost:9443/api/endpoints/1/docker/images/create?' \
--header 'X-Registry-Auth: eyJyZWdpc3RyeUlkIjoxfQ==' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbG****' \
--header 'X-PortainerAgent-Target: $nodename' \
--data '{"fromImage":""}'

But always i got this boring message:

“Head 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:

Ok, Im going there.
Thank you very much!