OCIFBSD-GC(8) FreeBSD System Manager's Manual OCIFBSD-GC(8)

ocifbsd-gcocifbsd garbage collection daemon

ocifbsd-gc [-fvh]

The ocifbsd-gc daemon performs periodic garbage collection for the ocifbsd(8) OCI runtime. It scans container, image, volume, and network state on disk and the host's network and ZFS configuration to identify and remove resources that are orphaned, stopped past their time-to-live, or no longer referenced.

Collection passes are scheduled on a configurable interval (see /etc/ocifbsd/ocifbsd.conf) and cover:

Deletions are delegated back to the main ocifbsd(8) binary via execvp(3) when a resource needs to be removed, so all cleanup honours the runtime's safety checks and audit logging.

The options are:

Run in the foreground. The default is to daemonize via daemon(3).
Enable verbose syslog output for every GC item considered.
Print a short usage summary and exit.

The daemon handles SIGTERM, SIGINT, and SIGHUP for graceful shutdown.

/var/run/ocifbsd
Default state directory used for container, image, volume, and network metadata ( OCIFBSD_STATE_DIR in the source).
/var/lib/ocifbsd/images
Default image storage directory (“OCIFBSD_IMAGE_DIR”).
/usr/sbin/ocifbsd
Path to the main ocifbsd(8) binary invoked for delete operations (“OCIFBSD_BIN”).
tank/ocifbsd
Default ZFS dataset for container roots (“OCIFBSD_ZFS_POOL”).
/etc/ocifbsd/ocifbsd.conf
Runtime configuration (intervals, TTLs, watermarks).

ocifbsd(8), daemon(3), zfs(8), pfctl(8)

The ocifbsd-gc command first appeared in FreeBSD 16.0.

The ocifbsd-gc utility was developed by Klara, Inc. under sponsorship from

FreeBSD 15.1-STABLE June 5, 2026 OCIFBSD-GC(8)