I had trouble figuring out how to run the following command on Linux to authenticate to ECR:
So usually when you authenticate to ECR it just does a docker login in the background.
AWS suggests that you use this command:(Which doesn't work for me on OSX):
eval $(aws ecr get-login --no-include-email)
This fix worked for me:( Should include the dollar sign)
$(aws ecr get-login --no-include-email --profile dstv-staging --region eu-west-1 )