डिफ़ॉल्ट रूप से, containers असीमित host resources का उपयोग कर सकते हैं — जिससे एक container के दूसरों को starve करने या host को crash करने का जोखिम होता है। Docker आपको consumption को control करने के लिए resource limits (CPU, memory) set करने देता है, जो production में stability और fair resource sharing के लिए महत्वपूर्ण है।
समस्या: unbounded resource use
BY DEFAULT a container can consume ALL available host CPU and memory:
→ a buggy/busy container (memory leak, runaway loop) can starve other containers
or crash the entire host (out of memory)
→ In production (multiple containers per host), LIMIT resources to isolate them.
