container: Add cgroup mount for introspection
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
c58bcc4ccf
commit
ed9d49f247
1 changed files with 3 additions and 0 deletions
|
@ -324,6 +324,9 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add cgroup mount so container process can introspect its own limits
|
||||||
|
specgen.AddCgroupsMount("ro")
|
||||||
|
|
||||||
if err := addDevices(sb, containerConfig, &specgen); err != nil {
|
if err := addDevices(sb, containerConfig, &specgen); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue