Loading video player...
Most engineers know Docker limits CPU and memory. Very few know HOW. The answer is Linux Cgroups (Control Groups), the kernel primitive that powers resource management in Docker and Kubernetes. In this video, we go from basics to a real working container with limits applied using pure Linux (no Docker magic): š Why Linux has NO default resource limits š How cgroups control CPU (throttling explained) š Why memory limits trigger OOM kills š cgroups v1 vs v2 (what actually changed) š Applying limits to a real container using unshare What you'll understand: - What happens when a Kubernetes pod gets OOMKilled - How Docker enforces CPU & memory limits internally - Why containers are NOT safe without cgroups ā¬ā¬ā¬ā¬ā¬ā¬ā¬ Timestamps ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 00:00 - Intro (Why Containers Need Resource Control) 00:58 - The Problem: No CPU & Memory Limits 01:47 - How Linux Solves This (Cgroups Explained) 02:42 - Cgroups v1 Problems (Why It Failed) 03:13 - Cgroups v2 Improvements (Unified System) 03:26 - Live Demo: CPU & Memory Limits with Cgroups 08:05 - Testing CPU Throttling & Memory Kill 09:28 - Apply Cgroups to a Real Container (unshare) 11:45 - Outro (How Containers Actually Work) & Whats Next Watch Related Playlists: - Kubernetes Gateway API: https://www.youtube.com/playlist?list=PL-K2rw28HIwYxzgTFmObuFhfctfBPAc6h - Kubernetes: https://www.youtube.com/playlist?list=PL-K2rw28HIwZVMo9CtbV0wDu548SN0h9Y - Github Actions: https://www.youtube.com/playlist?list=PL-K2rw28HIwYfq7SqYnBzAxlUhcYP7ldM - Ansible: https://www.youtube.com/playlist?list=PL-K2rw28HIwaavCXTYEWF4mP431KmKtEY - AWX: https://www.youtube.com/playlist?list=PL-K2rw28HIwbTtijpBMrOaHdnWGXdOkYa - AI: https://www.youtube.com/playlist?list=PL-K2rw28HIwaSvmI8oFeSQDl4cVTdxaGQ ā¬ā¬ā¬ā¬ā¬ā¬ Connect with me ā¬ā¬ā¬ā¬ā¬ā¬ LinkedIn: https://www.linkedin.com/in/kumar-nikhil811/ Website: https://techinik.com Medium: https://medium.com/@kumarnikhil811 #docker #kubernetes #linux #devops #cgroups #containerization