Merge pull request #639 from apilloud/rlimit
server: containers inherit rlimits from server
This commit is contained in:
commit
844c78ad81
1 changed files with 1 additions and 0 deletions
|
@ -317,6 +317,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
// creates a spec Generator with the default spec.
|
||||
specgen := generate.New()
|
||||
specgen.HostSpecific = true
|
||||
specgen.ClearProcessRlimits()
|
||||
|
||||
if err := addOCIBindMounts(sb, containerConfig, &specgen); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue