Docker push to ECR failing


Trying to learn ECR\ECS. I created a basic Web Site and built a Docker Image from it. I then tested it externally and it displays the Hello World page. Having an issue trying to push to my Docker Image to my Repository located in ECR which I confirmed is there. See below

[ec2-user@ip-172-X-X-X ~]$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE latest c9600a72d527 2 days ago 205MB hello-world latest c9600a72d527 2 days ago 205MB 18.04 f9a80a55f492 4 months ago 63.2MB

[ec2-user@ip-172-X-X-X ~]$ docker push The push refers to repository [] An image does not exist locally with the tag:

asked 9 months ago381 views
2 Answers

Did you tag your image before trying to push to ECR? The error leads me to think you forgot to tag the image before pushing

Below are the steps to push an image to ECR:

answered 9 months ago

Looking at the error message, I can see that it is informing that the image is not available locally and this is a requirement.

Checking the command above the error message, I could see that the image URI is a bit different. It is showing dkr.ecr.region instead of

I'd recommend you to use docker tag command to rename the image to use the expected URI.

profile pictureAWS
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions