I am trying to login to docker & ecr in a single command in mac os.
So far I got till this :
aws ecr get-login --region ap-south-1 | docker login --username AWS --password-stdin Xxxx.dkr.ecr.ap-south-1.amazonaws.com
Error response from daemon: login attempt to https://xxx.dkr.ecr.ap-south-1.amazonaws.com/v2/ failed with status: 400 Bad Request
Any idea how to solve this?
aws ecr get-login --region ap-south-1
has the response, am trying to pipe that to next command
docker login -u AWS -p **KEY** https://xx.dkr.ecr.ap-south-1.amazonaws.com