I've successfully pushed a Docker image to Amazon ECR. From my EC2 instance, I can see that image too. Now, I would like to pull that image. I did the following and the output is:
$ docker pull my_ecr_account_id/my_ecr_repository
Using default tag: latest
Pulling repository my_ecr_account_id/my_ecr_repository
unauthorized: authentication required
Prior to running docker pull
command, I've logged in from the output of this command:
aws ecr get-login --region us-east-1
The issue seems to be with Docker version. I realize the version wa about 6 months old. After updating the Docker to the latest (17.03.1-ce), it started working fine.