Skip to content

Commit b6ffa27

Browse files
author
Maksym Pavlenko
authored
Merge pull request containerd#10164 from henry118/shim-fix
Update ctr shim subcommand to task v3
2 parents 30fad38 + b8060d6 commit b6ffa27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/ctr/commands/shim/shim.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"strings"
2929

3030
"github.com/containerd/console"
31-
"github.com/containerd/containerd/api/runtime/task/v2"
31+
"github.com/containerd/containerd/api/runtime/task/v3"
3232
"github.com/containerd/containerd/v2/cmd/ctr/commands"
3333
"github.com/containerd/containerd/v2/pkg/namespaces"
3434
ptypes "github.com/containerd/containerd/v2/pkg/protobuf/types"
@@ -232,7 +232,7 @@ var execCommand = &cli.Command{
232232
},
233233
}
234234

235-
func getTaskService(context *cli.Context) (task.TaskService, error) {
235+
func getTaskService(context *cli.Context) (task.TTRPCTaskService, error) {
236236
id := context.String("id")
237237
if id == "" {
238238
return nil, fmt.Errorf("container id must be specified")
@@ -255,7 +255,7 @@ func getTaskService(context *cli.Context) (task.TaskService, error) {
255255
// TODO(stevvooe): This actually leaks the connection. We were leaking it
256256
// before, so may not be a huge deal.
257257

258-
return task.NewTaskClient(client), nil
258+
return task.NewTTRPCTaskClient(client), nil
259259
}
260260
}
261261

0 commit comments

Comments
 (0)