Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCgroupsRoot string = "/sys/fs/cgroup"
Variables ¶
View Source
var ErrPidInNoContainer = errors.New("No container has your input pid.")
ErrPidInNoContainer is exported
Functions ¶
func CheckContainerOOM ¶
CheckContainerOOM searches memory.oom_control of this container oom_kill_disable 0 under_oom 0 if under_oom equals to 1, return true.
func ContainerPidNum ¶
ContainerPidNum returns pid number given ID container contains, and returns an error if not found or got an error
func ContainsPid ¶
ContainsPid returns container ID if given pid in it, and returns an error if not found or got an error
func GetCgroupsRoot ¶
func GetCgroupsRoot() string
GetCgroupsRoot gets cgroups root path in Docker environment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.