diff --git a/runtime/v2/shim.go b/runtime/v2/shim.go index 00b7b1caa..cc1cf62f1 100644 --- a/runtime/v2/shim.go +++ b/runtime/v2/shim.go @@ -30,6 +30,7 @@ import ( "github.com/containerd/ttrpc" "github.com/hashicorp/go-multierror" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" eventstypes "github.com/containerd/containerd/api/events" "github.com/containerd/containerd/api/runtime/task/v2" @@ -240,9 +241,9 @@ func makeConnection(ctx context.Context, address string, onClose func()) (_ io.C return ttrpcClient, nil case "grpc": - var ( - gopts []grpc.DialOption - ) + gopts := []grpc.DialOption{ + grpc.WithTransportCredentials(insecure.NewCredentials()), + } conn, err := grpc.DialContext(ctx, dialer.DialAddress(params.Address), gopts...) if err != nil {