Skip to content

Can someone help to understand why image digest (SHA) gets changed when imported using ctr #8176

Answered by AkihiroSuda
rgaduput asked this question in Q&A
Discussion options

You must be logged in to vote

The original digest (sha256:6f57d7212b34ed17dc148f08269b1cf15ed278e1395a047e82c713868b0337a1) is lost on docker save, so ctr import can't reproduce it.

$ docker save bitnami/postgresql:13.9.0-debian-11-r21@sha256:6f57d7212b34ed17dc148f08269b1cf15ed278e1395a047e82c713868b0337a1 | tar xv
6f6acf2b77228cd91d2a79f4a770d3fbdf05aa45b0d51d3b4dd3b457c9f481ba/
6f6acf2b77228cd91d2a79f4a770d3fbdf05aa45b0d51d3b4dd3b457c9f481ba/VERSION
6f6acf2b77228cd91d2a79f4a770d3fbdf05aa45b0d51d3b4dd3b457c9f481ba/json
6f6acf2b77228cd91d2a79f4a770d3fbdf05aa45b0d51d3b4dd3b457c9f481ba/layer.tar
f82a58bcec5134210caf952155a1894efa25b87c864096431aa3c27522861dd2/
f82a58bcec5134210caf952155a1894efa25b87c864096431aa3c2752286…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rgaduput
Comment options

@xiaoyaozi5566
Comment options

@rgaduput
Comment options

Answer selected by AkihiroSuda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants