Skip to content

[Bug]: index.digest not consistent after pulls #212

@stevapple

Description

@stevapple

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Pull the following image and dump its digest with jq. You'll get different results each time.

$ image="gcr.io/k8s-staging-cri-tools/test-image-digest@sha256:9700f9a2f5bf2c45f2f605a0bd3bce7cf37420ec9d3ed50ac2758413308766bf"
$ container image pull $image
$ container image inspect $image | jq '.[].index.digest'

Current behavior

The digest is changed by every pull action:

$ image="gcr.io/k8s-staging-cri-tools/test-image-digest@sha256:9700f9a2f5bf2c45f2f605a0bd3bce7cf37420ec9d3ed50ac2758413308766bf"
$ container image pull $image
$ container image inspect $image | jq '.[].index.digest'
"sha256:0570a026b6348a1b02bae16156ccfc945aff10e0c322507e83e7ea962988e56c"
$ container image inspect $image | jq '.[].index.digest'
"sha256:0570a026b6348a1b02bae16156ccfc945aff10e0c322507e83e7ea962988e56c"
$ container image pull $image
$ container image inspect $image | jq '.[].index.digest'
"sha256:7fb9571b54af27a9f25e08ebe305aeba2c5e87d0c11f8fbe4411945ef8fec186"

Expected Behavior

The digest should always be sha256:9700f9a2f5bf2c45f2f605a0bd3bce7cf37420ec9d3ed50ac2758413308766bf.

Environment

- OS: macOS 15.5 (24F74)
- Xcode: Version 26.0 beta (17A5241e)
- Container: container CLI version 0.1.0 (build: release, commit: 0fd8692)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

investigateNeeds some more understanding

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions