Revert "imageDigest only for ecr" #3576
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit af54b2f.
This would address aws/containers-roadmap#1640
Summary
It was originally decided to supply image digests only for ECR because the image digests we supply do not match the dockerhub UI. This is because the dockerhub UI only shows individual "manifest" image digests for each particular image variant. ECR, on the other hand, displays the "index" digest, which is a single digest shared across all variants of a single image. Somewhat confusingly, the
docker image inspect
command shows the "index" image digest too.What this means is that
docker image pull
anddocker image inspect
show a different image digest than the dockerhub UI. This is confusing for docker customers and fixing this is one of the most-upvoted feature requests for dockerhub: docker/hub-feedback#1925Our solution to customer confusion to just simply omit the digest for non-ECR repos was probably not correct. Customers want image digests for all their images. If customers are confused why the docker "index" digest that they see in ecs.DescribeTasks does not match the "manifest" digest they see in dockerhub, then this is a documentation and education issue, not a code issue.
Testing
tested calling ecs.DescribeTasks before and after this change.
Before the change, can see imageDigest field only for private ECR repos:
private ECR (before change):
public ECR (before change):
dockerhub (before change):
After this PR, can see imageDigest field for all images:
private ECR (after change):
public ECR (after change):
dockerhub (after change):
Description for the changelog
Enhancement: Provide imageDigest for images from all container repositories
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.