Skip to content

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

Open
ningmingxiao wants to merge 1 commit into
containerd:mainfrom
ningmingxiao:add_snapshot
Open

feature: support to print snapshot info for image#5114
ningmingxiao wants to merge 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 Outdated
@AkihiroSuda AkihiroSuda added this to the v2.4.0 milestone Aug 1, 2026
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
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