Skip to content

feature: support to print snapshot info for image - #5114

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
ningmingxiao:add_snapshot
Aug 4, 2026
Merged

AkihiroSuda merged 1 commit into
containerd:mainfrom
ningmingxiao:add_snapshot

Conversation

@ningmingxiao

@ningmingxiao ningmingxiao commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

nerdctl -n k8s.io inspect busybox --mode=native

containerd config

  [plugins."io.containerd.snapshotter.v1.overlayfs"]
    upperdir_label = true

will show snapshot info we can find busybox image use dir /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/3/fs

        "Snapshots": [
            {
                "Kind": "Committed",
                "Name": "sha256:134949ec8800e56aef84679127eb2da7e1d2db5c0c905268e1ba5b12f58ee06c",
                "Labels": {
                    "containerd.io/snapshot/overlay.upperdir": "/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/3/fs"
                },
                "Created": "2026-08-01T09:29:08.733458432Z",
                "Updated": "2026-08-01T09:29:08.733458432Z"
            }
        ]
    }

todo add snapshot info for container rw layer.
@AkihiroSuda

fix containerd/containerd#10053

@ningmingxiao ningmingxiao changed the title feature:support to print diffids and snapshot info feature:support to print snapshotID and snapshot info Aug 1, 2026
@ningmingxiao ningmingxiao changed the title feature:support to print snapshotID and snapshot info feature: support to print snapshot info Aug 1, 2026
@ningmingxiao
ningmingxiao marked this pull request as draft August 1, 2026 10:42
@ningmingxiao
ningmingxiao marked this pull request as ready for review August 1, 2026 11:16
@ningmingxiao
ningmingxiao marked this pull request as draft August 1, 2026 12:33
@ningmingxiao
ningmingxiao force-pushed the add_snapshot branch 2 times, most recently from 8cb078f to 2fd81ee Compare August 1, 2026 13:28
@ningmingxiao ningmingxiao changed the title feature: support to print snapshot info feature: support to print snapshot info for image Aug 1, 2026
@ningmingxiao
ningmingxiao marked this pull request as ready for review August 1, 2026 13:29
@ningmingxiao
ningmingxiao force-pushed the add_snapshot branch 2 times, most recently from 36927fb to 9f96b9d Compare August 1, 2026 13:32
Comment thread pkg/imageinspector/imageinspector.go Resolved
@AkihiroSuda AkihiroSuda added this to the v2.4.0 milestone Aug 1, 2026
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda
AkihiroSuda merged commit 497045b into containerd:main Aug 4, 2026
59 of 68 checks passed
@ningmingxiao
ningmingxiao deleted the add_snapshot branch August 4, 2026 19:11
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.

2 participants