Harden the Runtime

A service running as root with every default capability and a writable filesystem. Apply the four controls and keep it serving.

Skill labadvanced~35 minFree

What you'll do

  • ✓Run a service as a non-root user
  • ✓Drop all capabilities and add back only what is needed
  • ✓Enforce a read-only root filesystem with narrow writable paths
  • ✓Verify each control against the running container

Lab outline

  1. 01Identity
  2. 02Privilege
  3. 03Filesystem

Before you start

  • Health and Resource Limits

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Docker labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Harden the Runtime — Docker lab | Kube Labs