What does `--memory-reservation` do?
AdvancedProductionResource Limits, Health & Reliability
Answer
A soft limit: under host memory pressure the kernel reclaims containers back toward their reservation first, but they can burst up to --memory. It maps to cgroup v2 memory.low/memory.high semantics. Use to bin-pack bursty workloads, while hard limit still prevents runaway usage.
More on Resource Limits, Health & Reliability
How do you set memory and CPU limits, and what happens when they are exceeded?BeginnerWhat is the difference between `--cpus`, `--cpu-shares` and `--cpuset-cpus`?BeginnerHow do you diagnose an OOM-killed container?IntermediateWhy do JVM and Node services in containers need explicit memory flags?IntermediateWhat is CPU throttling, and how do you detect it?AdvancedHow do you limit PIDs and open files in a container?Beginner