Lion Cipher Lab

Run containers without root using Podman

Why it matters

Most people meet containers through Docker's default setup, which runs a single background service called the daemon as root — the all-powerful administrator user. That is convenient, but it means anyone who can talk to that daemon can act as root on the host, and a container that escapes its isolation lands as root too. Podman changes the default: it runs containers directly as your own unprivileged user with no privileged daemon in the middle, so a container breakout does not hand an attacker root on your machine. Learning the rootless model early means every container you run afterwards…

What you'll learn

Steps in this lab

  1. The words first: container, image, daemon, root, rootless
  2. Why rootless is a safer default
  3. Install Podman for your operating system
  4. Run your first rootless container
  5. The Docker-compatible CLI: same commands you already know
  6. Prove it is running as your user, not root
  7. Rootless networking and its honest limits
  8. What you just did — and why the default now works for you

Open the full interactive lab →