I have exactly the same problem. I have followed the link to that Docker rancher/rancher-ecr-credentials but I really dont understand how this would work.
So I can put the container on one of my nodes of Rancher and start it but I dont get which ENV variables you have to pass to the container on start.
I understand AWS_KEY AWS_SECRET which I have but I dont get why do I need this AWS_ROLE_ARN …
I mean I have the KEY and the SECRET and normally this is enough to authenticate on all AWS services why do I need to provide that AWS_ROLE_ARN ? Do I really need that ? Also why do I have to map /root/.aws to the container if I am already passing it KEY and SECRET via ENV variables ?
This is really crap guys how is the hell possible such an important thing as using AWS ECR is NOT integrated in Rancher 2.0 ? What the heck ?
Could you please help me understanding this ?