SEASON 1 NOW STREAMING•Containers From Scratch

The Netflix of Infrastructure: We Build Everything From Scratch.

No toy hello-worlds. We start from a blank terminal, demystify the Linux Kernel, write production Dockerfiles, and solve real 2 AM outage post-mortems.

Interactive In-Browser Labs
Real Outage Post-Mortems
Future Seasons Included
infra-kernel ~ bash
root@infraandyou:~$ docker run -d -p 8080:80 --name infra-app nginx:alpine
[KERNEL] Unsharing namespaces: PID, NET, MNT, UTS
[CGROUP] memory.max = 512M • cpu.max = 200000
[OVERLAYFS] Mounting lowerdir=/layers upperdir=/diff
7a8f9214b62d847192 (Container ID Online)
0.0.0.0:8080 → 80/tcp (veth0)STATUS: UP
Isolation: Namespaces • Memory: 12.4MB / 512MB
💡 Interactive theory & sandbox loaded below0ms Latency
S1 • STREAMING
Docker & Containers
Live Interactive Lab
S2 • COMING
Kubernetes Platform
Control Plane & CRDs
S3 • COMING
Terraform IaC
Providers & State
S4 • COMING
ArgoCD GitOps
Canary & AppSets
S5 • COMING
Crossplane Control
Universal Cloud XRDs
The Infra & You Philosophy

Why Every Developer Must Learn Real Infrastructure in 2026

Building features is easy. Making them survive 50,000 concurrent users, sudden failovers, and container crashes is what separates juniors from staff engineers.

The "It Works on My Machine" Curse

The Production Pain: Apps run fine locally on macOS/Windows, then crash in production due to Linux dependency mismatches, missing glibc libraries, or unhandled file permissions.

What We Build: Master immutable container packaging and multi-stage container builds.

The Silent 2 AM OOMKilled Disasters

The Production Pain: Node.js, Python, and Java processes consume memory beyond container Cgroup limits, causing the Linux kernel to send SIGKILL (Exit code 137) with zero logs.

What We Build: Learn Cgroup v2 memory ceilings, JVM container support, and signal handling.

Bloated 1.5GB Images & Exploding Bills

The Production Pain: Copying entire node_modules or build toolchains into production images creates 10-minute CI/CD deploys and massive cloud registry bandwidth costs.

What We Build: Shrink production images down to 18MB Distroless binaries.

Running Containers as Root in Production

The Production Pain: Over 70% of public Dockerfiles run as the root user with full host access, allowing container escapes to compromise the entire host infrastructure.

What We Build: Enforce non-root users, read-only root filesystems, and vulnerability scanning.
An Episodic Tech Journey

We Build Everything From Scratch. No Magic Black Boxes.

Most tutorials hand you a finished configuration file and tell you to run it. At **Infra & You**, we start with a blank terminal. We dissect the Linux system calls, build the container layers, wire up the networking bridges, and deliberately crash systems to show you how to rescue them under fire.

0%
Black Box Magic
100%
Code From Scratch
4
Episodic Seasons
4.96 ★
Practitioner Rating
Interactive Learning Sandbox

Interactive Theory, Diagrams & Live Docker Sandbox

Inspect visual architecture diagrams, edit the Dockerfile, and run real commands in the terminal with live web container preview.

Infra & You • Docker LabInteractive
Container Internals • Beginner

Lab 1: Container Isolation & Port Forwarding

Containers are NOT mini-virtual machines. A container is simply a standard Linux process running with restricted visibility enforced by the Linux Kernel through 6 Namespaces and Cgroups.

Core Concepts to Understand:

PID Namespace

Gives the container its own isolated process tree where your app runs as PID 1, while on the host system it has a regular high PID (e.g. PID 48192).

NET Namespace & Port Forwarding (-p 8080:80)

Creates a virtual ethernet interface (veth) connected to the docker0 bridge. Port forwarding configures iptables NAT rules on the host.

Mount (MNT) Namespace & OverlayFS

Gives the container its own private root filesystem (/) layered over the host storage without modifying host files.

Linux Kernel Container Isolation Architecture

How Host Kernel isolates PID, Network & Mounts without a Hypervisor

💡 Click components to inspect internals
HOST LINUX OS (Kernel 6.8 • Shared by all containers)
Container: web-nginxPID 1: nginx
PID Namespace:Isolated Tree (1, 28, 29)
NET Namespace:eth0 → 172.17.0.2
Cgroup Memory:Max 256MB
Container: api-nodePID 1: node
PID Namespace:Isolated Tree (1, 14)
NET Namespace:eth0 → 172.17.0.3
Cgroup Memory:Max 512MB
Shared Host Linux Kernel (Namespaces • Cgroups v2 • OverlayFS • iptables)

💡 Interactive Concept: Click on any container above to inspect how Linux isolation primitives work under the hood.

Quick Run:
WHAT’S TRENDING IN AI INFRASTRUCTURE 2026•MCP Proxy • DeepSeek • Autonomous SRE

The AI Infrastructure Stack: Agent Gateway&Kagent SRE

Calling LLM APIs in development is trivial. Running hundreds of autonomous agents in production with zero 429 rate limit outages, 80% token cost reduction, Anthropic MCP sandboxing, and Kubernetes self-healing is where real engineering begins.

Routing Latency: <0.3ms
Token Cost Slashed: Up to 82%
Protocol: 100% MCP Compliant
Operator: Kubernetes CRD Native
REVERSE PROXY FOR AGENTS & LLMSSub-millisecond Model Arbitrage • Zero-Trust MCP Guard

Agent Gateway: Unifying Claude 3.7, DeepSeek-R1, and Anthropic MCP

Interactive Pipeline Topology (Click any node to inspect internals)Latency Overhead: 0.28ms
Client Agent
Claude Code • LangChain • Cursor
Agent Gateway
Auth • Token Quotas • OTel
Semantic Cache
pgvector • 0ms • -80% Cost
Model Arbitrage
Claude 3.7 • DeepSeek • Bedrock
MCP Tool Sandbox
SQL • Bash • gVisor Sandbox
Node Inspector:Model Arbitrage balances pricing vs latency. Auto-reroutes on 429, 503, or rate limits across providers.
Status: Ready
Gateway Live Execution Stream • Trace #ag-8419ONLINE • 0.28ms Overhead
Ready to process incoming AI agent traffic.
Click “Test 429 Failover” or “Test Semantic Cache” above ↑
Model Provider: Anthropic → AWS Bedrock Failover
Tokens Billed: 0 (Saved: 100%)
agent-gateway.yaml
apiVersion: gateway.ai.infra/v1
kind: AgentRoute
metadata:
  name: claude-deepseek-arbitrage
spec:
  routing:
    primary: anthropic/claude-3-7-sonnet
    fallbacks:
      - aws-bedrock/claude-3-7
      - deepseek/deepseek-r1
      - openai/gpt-4o
    failoverOn: [429, 502, 503, timeout]
  caching:
    semanticSimilarity: 0.92
    vectorDb: pgvector.internal:5432
    ttl: 7200s
  mcp:
    sandbox: gVisor
    allowedTools: [sql_exec, github_pr]
⚡ Hot-reloaded with 0 downtime via Envoy/Wasm data plane.

Why Traditional Web Infrastructure Breaks Under AI Agent Workloads

Agents generate unpredictable streaming sessions, multi-turn tool loops, and massive GPU token costs that standard load balancers were never designed for.

Feature / RequirementTraditional Web Infra (NGINX / ALB)Modern AI Infra (Agent Gateway + Kagent)
Rate Limits & OutagesDrops requests with HTTP 429 & fails end user.Sub-millisecond dynamic arbitrage across Anthropic, Bedrock, and DeepSeek.
Caching StrategyExact string match only (0% hit rate for LLMs).Vector semantic caching with pgvector (80%+ cost savings).
Tool Calling & SandboxBlind proxy; no understanding of agent tools or MCP.gVisor microVM isolation + eBPF kernel audit for every SQL/Bash call.
Incident DiagnosticsPagers wake up humans at 3:00 AM to read raw logs.Kagent SRE operator auto-triages CrashLoops, patches manifests, and writes PRs.
Episodic Engineering Series

The Netflix of Infrastructure: Built from Scratch

Every season is an end-to-end journey starting from bare-metal primitives and building up to massive distributed systems. No skipped steps. No magic black boxes.

SEASON 1STREAMING

Docker & Containers from Absolute Scratch

From Linux cgroups and namespaces to 18MB Distroless images and multi-container Compose fleets.

12 Episodes18+ Hours
SEASON 2COMING

Kubernetes Platform from Scratch

Control plane internals, custom controllers, etcd Raft consensus, and multi-cluster networking.

14 Episodes24+ Hours
SEASON 3COMING

Terraform & Infrastructure as Code from Scratch

State locking, custom providers, immutable infrastructure, and multi-cloud production architecture.

10 Episodes18+ Hours
SEASON 4COMING

ArgoCD & GitOps Progressive Delivery from Scratch

Declarative cluster states, automated drift reconciliation, canary rollouts, and multi-cluster GitOps.

10 Episodes16+ Hours
SEASON 5COMING

Crossplane & Universal Cloud Control Planes

Turn Kubernetes into a universal control plane to provision cloud databases, networks, and IAM.

12 Episodes20+ Hours
SEASON 1 • Beginner to Advanced12 Full Episodes (18+ Hours)

Docker & Containers from Absolute Scratch

We do not start with Docker Desktop. We start with raw Linux primitives (unshare, chroot, cgroups v2), build a working container engine in pure bash, and then graduate to production-grade Dockerfile optimization, multi-stage caching, and zero-downtime Compose stacks.

100% Free • In-Browser Labs
Launch Season 1 • Interactive Player

What We Build From Scratch in This Season:

A container runtime built from raw Linux kernel namespaces & cgroups
An 18MB minimal Distroless production container replacing a 1.4GB image
An isolated bridge network with custom container DNS service discovery
A multi-tier microservices stack with automated healthchecks & persistent volumes
Diagnostic runbooks for 2 AM OOMKilled crashes and PID 1 zombie reaping