Standaard kunnen containers onbeperkt hostresources gebruiken — wat risico's met zich meebrengt dat één container anderen uithongert of de host crasht. Docker laat je resourcelimieten (CPU, geheugen) instellen om consumptie te controleren, wat belangrijk is voor stabiliteit en eerlijke resourcedeling in productie.
Het probleem: onbegrensde resourcegebruik
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.
