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.29
TRX 0.12
JST 0.032
BTC 57768.72
ETH 2943.36
USDT 1.00
SBD 3.66