From 09d454ac74d86debed07fde17fbd56522b316e27 Mon Sep 17 00:00:00 2001 From: bin Date: Tue, 30 Mar 2021 19:44:00 +0800 Subject: [PATCH] runtime: import runtime/v2/runc/options to decode request from Docker Shimv2 protocol CreateTaskRequest.Options has a type of *google_protobuf.Any. If the call is from Docker, to decode the request, the proto types(github.com/containerd/containerd/runtime/v2/runc/options) should be imported. Fixes: #1576 Signed-off-by: bin --- src/runtime/containerd-shim-v2/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/containerd-shim-v2/create.go b/src/runtime/containerd-shim-v2/create.go index 8619480c3a15..1beaa900bb2f 100644 --- a/src/runtime/containerd-shim-v2/create.go +++ b/src/runtime/containerd-shim-v2/create.go @@ -23,6 +23,7 @@ import ( // only register the proto type _ "github.com/containerd/containerd/runtime/linux/runctypes" + _ "github.com/containerd/containerd/runtime/v2/runc/options" crioption "github.com/containerd/cri-containerd/pkg/api/runtimeoptions/v1" "github.com/kata-containers/kata-containers/src/runtime/pkg/katautils"