IT lexicon › Infra & Ops › ezjail

ezjail

Infra & Ops På svenska → Updated: 2026-11-09
More info
Creator
Dirk Engling
Type
Jail manager
License
BSD

The shell scripts that made FreeBSD jails cheap by letting them all share a single read-only base system.

A jail needs its own FreeBSD userland to run in, and installing a full base system per jail cost both disk space and patching effort. Dirk Engling wrote ezjail in the mid-2000s around one simple idea: the basejail. The base system is installed once, and every jail mounts it read-only through nullfs. The jail itself only holds what makes it different from its neighbours, typically /etc, /usr/local and data.

Updating the base once therefore updated every jail at the same time. Templates were called flavours and copied into new jails on creation, and everything ran through ezjail-admin. Being plain shell with no dependencies made it popular with admins who distrusted everything else. ZFS-centred successors like iocage and Bastille have effectively retired ezjail, but the basejail idea lives on in both.

← Back to the lexicon