Unable to docker login in AWS ECR

I’m trying to do a docker login into a an AWS ECR repository:

$ aws ecr get-login-password --region <<region>> | docker login --username AWS --password-stdin <<account-id>>.dkr.ecr.<<region>>.amazonaws.com
Error saving credentials: error storing credentials - err: exit status 1, out: `not implemented`

It looks like this issue, but I have dropped all my previous configuration files, reset my config.json and have my AWS values sourced.

Is there any tricks to get through it?