Skip to content

Commit

Permalink
runtime: import runtime/v2/runc/options to decode request from Docker
Browse files Browse the repository at this point in the history
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 <bin@hyper.sh>
  • Loading branch information
liubin committed Mar 30, 2021
1 parent b58fb25 commit 09d454a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/containerd-shim-v2/create.go
Expand Up @@ -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"
Expand Down

0 comments on commit 09d454a

Please sign in to comment.