Don't expose cgroups via the execdriver API.
Use Resources to represent container limits rather than a cgroup specific field. Docker-DCO-1.1-Signed-off-by: Paul Nasrat <pnasrat@gmail.com> (github: pnasrat)
This commit is contained in:
parent
13860a3ba9
commit
1e4c9aed91
1 changed files with 0 additions and 6 deletions
|
@ -12,12 +12,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
type Values struct {
|
||||
Memory int64 `json:"memory"`
|
||||
MemorySwap int64 `json:"memory_swap"`
|
||||
CpuShares int64 `json:"cpu_shares"`
|
||||
}
|
||||
|
||||
// https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt
|
||||
func FindCgroupMountpoint(subsystem string) (string, error) {
|
||||
mounts, err := mount.GetMounts()
|
||||
|
|
Loading…
Reference in a new issue