docker login -u AWS -p $(aws ecr get-login-password --region the-region-you-are-in) xxxxxxxxx.dkr.ecr.the-region-you-are-in.amazonaws.com
aws ecr --region <your-region> | docker login -u AWS -p <your-encrypted-password> 123456789.dkr.ecr.us-east-1.amazonaws.com/dockerrepo