Interview Prep/Docker/Resource Limits, Health & Reliability

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.

All Docker questions Roadmap: Docker & containers

More on Resource Limits, Health & Reliability