Following this discussion- Integrate Amazon Elastic Container Registry with Jenkins,

After publishing my image to ECR from Jenkins using a shell script, it works- but another image with empty tag is published each time (with different Digest). Trying to recreate this I created another Repository in the ECR and when the image was published from my local cmd (using the same script) in the new Repository it didn't happen.

Did anyone encountered something similar, or has a suggestion regarding what could cause it?


I think it happened because you push the updated image with the same tag (suppose you use imagename:latest) When you push for the first time - you get only one image in your repository and it has a tag "latest". When you try to push updated image with the same "latest" tag, in ECR the same tag cannot be on two different images, so it is put on a new image, but removed from the previously "latest" image, thus leaving it without any tags. So the image that you see with "empty tag" is just a previous version of your image.

  • Thanks, but I'm pushing the images with different tags- the tag is an increasing integer in every push. Maybe it can be caused because of a common base-image? – A.K Dec 14 '16 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.