diff --git a/container/container_init.go b/container/container_init.go index fce352d..d90fca1 100644 --- a/container/container_init.go +++ b/container/container_init.go @@ -10,7 +10,6 @@ import ( "syscall" "github.com/containerd/cgroups/v3/cgroup1" - "github.com/nixpig/brownie/container/cgroups" "github.com/nixpig/brownie/container/namespace" "github.com/nixpig/brownie/container/terminal" "github.com/nixpig/brownie/internal/ipc" @@ -168,12 +167,12 @@ func (c *Container) Init(reexec string, arg string, log *zerolog.Logger) error { reexecCmd.Env = append(reexecCmd.Env, c.Spec.Process.Env...) } - if c.Spec.Process != nil && c.Spec.Process.Rlimits != nil { - if err := cgroups.SetRlimits(c.Spec.Process.Rlimits); err != nil { - log.Error().Err(err).Msg("set rlimits") - return err - } - } + // if c.Spec.Process != nil && c.Spec.Process.Rlimits != nil { + // if err := cgroups.SetRlimits(c.Spec.Process.Rlimits); err != nil { + // log.Error().Err(err).Msg("set rlimits") + // return err + // } + // } reexecCmd.Stdin = c.Opts.Stdin reexecCmd.Stdout = c.Opts.Stdout