OCIFBSD_IMAGE(3) FreeBSD Library Functions Manual OCIFBSD_IMAGE(3)

ocifbsd_imageocifbsd OCI image management library

#include <ocifbsd/image/pull.h>
#include <ocifbsd/image/push.h>
#include <ocifbsd/image/unpack.h>
#include <ocifbsd/image/zfs_store.h>

The ocifbsd_image library implements the OCI image lifecycle used by ocifbsd(8) to pull, unpack, store, and push container images. It is not a standalone program; it is linked into the main ocifbsd(8) binary and any external tooling that needs to move images in and out of the local ZFS-backed image store.

The library provides four functional areas:

The public API is declared across <ocifbsd/image/pull.h>, <ocifbsd/image/push.h>, <ocifbsd/image/unpack.h>, and <ocifbsd/image/zfs_store.h>; see those headers for the full list of functions and data structures.

/var/db/ocifbsd/images
Default ZFS dataset for pulled image roots.
/var/db/ocifbsd/layers
Default ZFS dataset for shared layer blobs.
/var/db/ocifbsd/volumes
Default ZFS dataset for named volumes.
/etc/ocifbsd/image.conf
Image configuration (default registry, pull policy).

ocifbsd(8), zfs(8), libarchive(3), curl(1), oci-image-spec(7)

The ocifbsd_image library first appeared in FreeBSD 16.0.

The ocifbsd_image library was developed by Klara, Inc. under sponsorship from

FreeBSD 15.1-STABLE June 5, 2026 OCIFBSD_IMAGE(3)