gitee.com/leisunstar/runtime@v0.0.0-20200521203717-5cef3e7b53f9/cli/containerd-shim-kata-v2/main.go (about)

     1  // Copyright (c) 2018 HyperHQ Inc.
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  
     6  package main
     7  
     8  import (
     9  	"github.com/containerd/containerd/runtime/v2/shim"
    10  	"github.com/kata-containers/runtime/containerd-shim-v2"
    11  )
    12  
    13  func shimConfig(config *shim.Config) {
    14  	config.NoReaper = true
    15  	config.NoSubreaper = true
    16  }
    17  
    18  func main() {
    19  	shim.Run("io.containerd.kata.v2", containerdshim.New, shimConfig)
    20  }