Closed bergwolf closed 7 years ago
For CPU, use Spec.Linux.Resources.CPU.Quota/Spec.Linux.Resources.CPU.Period.
For Memory, use Spec.Linux.Resources.Memory.Limit.
$docker run --rm -it --cpus 1.5 --memory 671088640 busybox sh / # cat /proc/cpuinfo |grep processor processor : 0 processor : 1 / # cat /proc/meminfo |grep MemTotal MemTotal: 569512 kB
fixes https://github.com/hyperhq/runv/issues/586
@laijs updated.
LGTM
For CPU, use Spec.Linux.Resources.CPU.Quota/Spec.Linux.Resources.CPU.Period.
For Memory, use Spec.Linux.Resources.Memory.Limit.
fixes https://github.com/hyperhq/runv/issues/586