Skip to content

feature: support to print snapshot info for container - #5118

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

feature: support to print snapshot info for container#5118
ningmingxiao wants to merge 1 commit into
containerd:mainfrom
ningmingxiao:container_snap

Conversation

@ningmingxiao

@ningmingxiao ningmingxiao commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

containerd config

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

nerdctl -n k8s.io container inspect 6fca --mode=native
we can find container's rwlayer dir is /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/439/fs

        "SnapshotInfo": {
            "Kind": "Active",
            "Name": "6fca9b85372791a91e6931a0fc8895aa1f362453cbca9d0ddf7e4c19d257875d",
            "Parent": "sha256:e215fa422c604a8ea57ffcf6abc11e686d50a89f861c9b90adbb76033a956c66",
            "Labels": {
                "containerd.io/snapshot/overlay.upperdir": "/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/439/fs"
            },
            "Created": "2026-08-02T00:43:41.55270773Z",
            "Updated": "2026-08-02T00:43:41.55270773Z"
        }

fix containerd/containerd#10053

Comment thread pkg/cmd/container/inspect.go
Comment thread pkg/inspecttypes/native/container.go Outdated
Comment thread pkg/cmd/container/inspect.go Outdated
Comment thread pkg/inspecttypes/native/container.go Outdated
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