Merge pull request #639 from apilloud/rlimit

server: containers inherit rlimits from server
This commit is contained in:
Mrunal Patel 2017-07-05 12:03:15 -07:00 committed by GitHub
commit 844c78ad81

View file

@ -317,6 +317,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
// creates a spec Generator with the default spec. // creates a spec Generator with the default spec.
specgen := generate.New() specgen := generate.New()
specgen.HostSpecific = true specgen.HostSpecific = true
specgen.ClearProcessRlimits()
if err := addOCIBindMounts(sb, containerConfig, &specgen); err != nil { if err := addOCIBindMounts(sb, containerConfig, &specgen); err != nil {
return nil, err return nil, err