mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
For kata shimv2, the sub-reaper isn't needed, otherwise it will break the cmd.Run() calling in govmmQemu.LaunchQemu(). Fixes: #939 Signed-off-by: fupan <lifupan@gmail.com>
21 lines
392 B
Go
21 lines
392 B
Go
// Copyright (c) 2018 HyperHQ Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/containerd/containerd/runtime/v2/shim"
|
|
"github.com/kata-containers/runtime/containerd-shim-v2"
|
|
)
|
|
|
|
func shimConfig(config *shim.Config) {
|
|
config.NoReaper = true
|
|
config.NoSubreaper = true
|
|
}
|
|
|
|
func main() {
|
|
shim.Run("io.containerd.kata.v2", containerdshim.New, shimConfig)
|
|
}
|