Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageDigest only for ECR #2201

Merged
merged 1 commit into from
Sep 13, 2019
Merged

ImageDigest only for ECR #2201

merged 1 commit into from
Sep 13, 2019

Conversation

cyastella
Copy link
Contributor

@cyastella cyastella commented Sep 12, 2019

Summary

Fetch the image RepoDigest only for ECR.
run docker images --digests

Implementation details

Testing

New tests cover the changes:

Description for the changelog

container repositories support two kinds of digests: manifest digests and index digests. Manifest digests are the digests for the manifest which represents a specific os and architecture that an image was built for.Index digests that image digest that build on top of manifest digest (we can get this from docker images —digests). When user directly pull an image from DockerHub, user get a digest as we called index digest. When the same image in ECR repo, we get the digest called manifest digest. ECR doesn’t currently support index digests, so users won’t see this behavior. Dockerhub displays the manifest digest on their website, but the index digest is what is recorded by the docker daemon. This may confuse customers which ImageDigest that they use (manifest digest or index digest).

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

agent/engine/docker_image_manager.go Outdated Show resolved Hide resolved
agent/engine/docker_image_manager.go Outdated Show resolved Hide resolved
agent/engine/docker_image_manager_test.go Outdated Show resolved Hide resolved
@cyastella cyastella added this to the 1.31.0 milestone Sep 12, 2019
Copy link
Contributor

@fenxiong fenxiong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls do some manual test to make sure

@cyastella cyastella merged commit a7e4f68 into aws:dev Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants