mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
podman pod create --memory
using the new resource backend, implement podman pod create --memory which enables users to modify memory.max inside of the parent cgroup (the pod), implicitly impacting all children unless overriden Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
4
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
@ -152,10 +152,10 @@ func resourcesToProps(res *configs.Resources) (map[string]uint64, map[string]str
|
||||
|
||||
// Mem
|
||||
if res.Memory != 0 {
|
||||
iMap["MemoryMax"] = res.Memory
|
||||
uMap["MemoryMax"] = uint64(res.Memory)
|
||||
}
|
||||
if res.MemorySwap != 0 {
|
||||
iMap["MemorySwapMax"] = res.MemorySwap
|
||||
uMap["MemorySwapMax"] = uint64(res.MemorySwap)
|
||||
}
|
||||
|
||||
// Blkio
|
||||
|
3
vendor/github.com/containers/common/pkg/seccomp/default_linux.go
generated
vendored
3
vendor/github.com/containers/common/pkg/seccomp/default_linux.go
generated
vendored
@ -221,6 +221,9 @@ func DefaultProfile() *Seccomp {
|
||||
"ipc",
|
||||
"keyctl",
|
||||
"kill",
|
||||
"landlock_add_rule",
|
||||
"landlock_create_ruleset",
|
||||
"landlock_restrict_self",
|
||||
"lchown",
|
||||
"lchown32",
|
||||
"lgetxattr",
|
||||
|
3
vendor/github.com/containers/common/pkg/seccomp/seccomp.json
generated
vendored
3
vendor/github.com/containers/common/pkg/seccomp/seccomp.json
generated
vendored
@ -228,6 +228,9 @@
|
||||
"ipc",
|
||||
"keyctl",
|
||||
"kill",
|
||||
"landlock_add_rule",
|
||||
"landlock_create_ruleset",
|
||||
"landlock_restrict_self",
|
||||
"lchown",
|
||||
"lchown32",
|
||||
"lgetxattr",
|
||||
|
Reference in New Issue
Block a user