Change default subreaper setting

This subreaper should always be turned on for containerd unless
explicitly needed for it to be off.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-11-28 17:04:21 -05:00
parent 967caeeacc
commit 6e9f24b711
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import (
// apply sets config settings on the server process
func apply(ctx context.Context, config *Config) error {
if config.Subreaper {
if !config.NoSubreaper {
log.G(ctx).Info("setting subreaper...")
if err := sys.SetSubreaper(1); err != nil {
return err