I'm trying to login to ECR with the following command:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/...
Which return this error
Error saving credentials: error storing credentials - err: exit status 1, out: `The stub received bad data.`
I tried storing the AWS credentials in a file or setting them in the cmd, buy i keep getting the same error.
I also tried to change my config.json file but It didn't help.
How can i solve this? I need to login to push some images... Thanks in advice