Authenticate to ECR on OSX

in #aws6 years ago

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 )

Sort:  

@resteemator is a new bot casting votes for its followers. Follow @resteemator and vote this comment to increase your chance to be voted in the future!

YOU JUST GOT UPVOTED

Congratulations,
you just received a 16.47% upvote from @steemhq - Community Bot!

Wanna join and receive free upvotes yourself?
Vote for steemhq.witness on Steemit or directly on SteemConnect and join the Community Witness.

This service was brought to you by SteemHQ.com

Coin Marketplace

STEEM 0.22
TRX 0.27
JST 0.042
BTC 104536.45
ETH 3874.03
SBD 3.32