[ECR] [bug]: ECR does not persist tags of pushed images
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
**Tell us about your request**
For years, I've been pushing images to ECR with the Docker CLI. The images always included a specific tag, and ECR always happily persisted the tag, which in turn would let me pull the image with that tag at a later time. Standard Docker registry stuff.
For at least a week, ECR has not been persisting the tags, meaning they aren't visible in the AWS console and I can't use them when pulling or enumerating images. After pushing, I can't even see the desired tags in CloudTrail.
I haven't changed anything about how I'm pushing images, so I'm thinking this has to be a bug/regression. I shared the details on re:Post last week: https://repost.aws/questions/QUxpkmUxnIRB2xzIp4BEiO5A/ecr-is-not-storing-tags-for-pushed-images. However, I never got a reply, and after reaching out to AWS Support on Twitter, they pointed me to this repository. I'm hopeful that this will get this report in front of the right people.
**Which service(s) is this request for?**
ECR.
**Are you currently working around this issue?**
Using a combination of `DescribeImagesCommand`, `BatchGetImageCommand`, and `PutImageCommand`, I'm able to manually construct an image with the correct tag, but this should be entirely unnecessary. ECR should just record the image tag when I push an image like it did for ages.
Contributor guide
Research direction
Start by reproducing the push with the Docker CLI against ECR and compare the result in the AWS console and CloudTrail. The issue names DescribeImagesCommand, BatchGetImageCommand, and PutImageCommand as a workaround; done means a pushed image's requested tag is persisted and usable for later pulls and enumeration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100