Run conmon under cgroups (systemd)

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-03-06 15:08:46 -08:00
parent 3195f45904
commit 8c0ff7d904
3 changed files with 19 additions and 5 deletions

View file

@ -111,7 +111,7 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq
}
}()
if err = s.runtime.CreateContainer(container); err != nil {
if err = s.runtime.CreateContainer(container, sb.cgroupParent); err != nil {
return nil, err
}