← Previous page:the project README — the book’s first
page, and the five-minute version of everything below.
All of Zygo’s documentation, in one place, written to be read from the start.
It begins with Container 101: what the Linux kernel gives you to build a
sandbox, and what Docker builds from it. Then it explains Zygo — how it
works, where it saves time and memory, and how it compares with everything
around it. Then it teaches you to use it, and ends with the full reference:
every command, every flag, every field, every file and every exit code. You
do not need to know any of it already. If you can use a shell and you know
what a process is, you can read every page.
Each section is short on purpose — a few sentences, a picture where one
helps, and a link to the detail. Read Parts I and II once; after that, the
headings work as a reference. This book is the source of truth: when Zygo
changes, the book changes in the same commit (AGENTS.md).
first time here? ────────────────▶ the README, then this page
new to containers? ──────────────▶ Part I, then Part II
know Docker, new to Zygo? ───────▶ chapters 6, 7, 10, then 11
want to use it today? ───────────▶ chapter 11, then 13
looking something up? ───────────▶ Part IV
deciding whether to trust it? ───▶ chapter 23
A container is not a thing in the kernel. It is a normal process with
several limits put on it; the kernel has no idea what a “container” is.
The limits are cheap; the tools around them are not. Setting up the
limits takes about a millisecond. Docker takes hundreds, and most of that is
programs talking to programs.
Zygo removes the tools, then removes the start-up. It sets the limits up
itself, in one process, and then keeps a ready copy of your program waiting,
so a request costs one fork().
Every number about Zygo in this book comes from chapter 25,
which names the machines and the commands. Numbers about other projects are
their own claims or commonly measured ranges, and they are marked that way.
zygo bench all repeats Zygo’s numbers on your own machine.