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

crane: Pulling by digest leads to a changed image when storing on disk #1922

Open
jastBytes opened this issue Apr 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jastBytes
Copy link

jastBytes commented Apr 16, 2024

Describe the bug

When using crane save to store an image which has been pulled by digest, the tool adds a tag "i-was-a-digest" to the image. This changes the image and so changes the digest of the image on disk. That is unexpected and should not happen.

$ ./crane version
0.19.1
$ ./crane pull icr.io/instana/k8sensor@sha256:85a9ed3a6f2e36facc5a7e7e112c1a91449c8eca3fa7824d4fb32491d50f59ef k8sensor.tar
$ ./crane digest --tarball k8sensor.tar 
sha256:06a3b6e8a8d4bbed52a50206fee94071eb8db06081c0835c1694d0ce399ec72c

As you can see sha256:06a3b6e8a8d4bbed52a50206fee94071eb8db06081c0835c1694d0ce399ec72c is not the digest of the originally image pulled.

@jastBytes jastBytes added the bug Something isn't working label Apr 16, 2024
@jastBytes jastBytes changed the title crane: Pulling by digest leads to a changed image on disk crane: Pulling by digest leads to a changed image when storing on disk Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant