Skip to content

ctr shim not support runtime v1 shim #2739

@Ace-Tang

Description

@Ace-Tang

Description

command ctr shim --socket xx shim state not support runtime.v1 shim, Can I add runtime.v1 shim support into ctr shim command ?

$ sudo ctr c ls
CONTAINER    IMAGE                               RUNTIME                           
s2           docker.io/library/busybox:latest    io.containerd.runtime.v1.linux    
vv2          docker.io/library/busybox:latest    io.containerd.runc.v1             

$ sudo ctr  shim --socket=/containerd-shim/default/vv2/shim.sock state
{
    "id": "vv2",
    "bundle": "/var/run/containerd/io.containerd.runtime.v2.task/default/vv2",
    "pid": 9956,
    "status": 2,
    "stdin": "/run/containerd/fifo/962174193/vv2-stdin",
    "stdout": "/run/containerd/fifo/962174193/vv2-stdout",
    "stderr": "/run/containerd/fifo/962174193/vv2-stderr",
    "exited_at": "0001-01-01T00:00:00Z"
}

$ sudo ctr  shim --socket=/containerd-shim/default/s2/shim.sock state
ctr: rpc error: code = NotFound desc = service containerd.task.v2.Task

Describe the results you received:

Describe the results you expected:

Output of containerd --version:

(paste your output here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions