
This sets the subreaper to true in the default linux config as the common usecase is to not run containerd as pid 1. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
21 lines
375 B
Go
21 lines
375 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containerd/containerd/server"
|
|
)
|
|
|
|
func defaultConfig() *server.Config {
|
|
return &server.Config{
|
|
Root: server.DefaultRootDir,
|
|
State: server.DefaultStateDir,
|
|
GRPC: server.GRPCConfig{
|
|
Address: server.DefaultAddress,
|
|
},
|
|
Subreaper: true,
|
|
Debug: server.Debug{
|
|
Level: "info",
|
|
Address: server.DefaultDebugAddress,
|
|
},
|
|
}
|
|
}
|