amazon web services – docker image can’t recognize the right tag when I try to push it to ECR


I build image with the command:

 docker build -t ecr-repo-name:terraform-0.13.4 .

...
This gave me:
Successfully tagged ecr-repo-name:terraform-0.13.4

Then I tried to push it to this ecr repo:

docker push 1234567.dkr.ecr.us-east-1.amazonaws.com/ecr-repo-name:terraform-0.13.4

but this gave me error:

The push refers to repository [1234567.dkr.ecr.us-east-1.amazonaws.com/ecr-repo-name]
tag does not exist: 1234567.dkr.ecr.us-east-1.amazonaws.com/ecr-repo-name:terraform-0.13.4

Why the tag became ‘1234567.dkr.ecr.us-east-1.amazonaws.com/ecr-repo-name:terraform-0.13.4’ instead of ‘ecr-repo-name:terraform-0.13.4’? I don’t understand…. Can someone help me please, am I missing anything?