Som standard kan containere bruge ubegrænset værtsressourcer — hvilket risikerer, at en container sulter andre eller får værten til at gå ned. Docker lader dig angive ressourcebegrænsninger (CPU, hukommelse) for at kontrollere forbruget, hvilket er vigtigt for stabilitet og fair ressourcedeling i produktion.
Problemet: ubegrænset ressourceforbrug
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.
