Skip to main content

Module oci

Module oci 

Source
Expand description

Zero-daemon OCI / Docker Registry v2 image puller & layer unpacker.

Pulls public OCI/Docker images (Docker Hub, GHCR, Quay, Harbor) over HTTPS in pure Rust, selects the linux/arm64 (or requested architecture) manifest from multi-arch indexes, unpacks gzip/plain tar layers with OCI whiteout handling into a local cache directory, and returns the cached rootfs path ready to be mounted :cow at /mnt/oci.

Structs§

ImageRef
OciImageConfig
OciRootfs

Functions§

fetch_oci_rootfs
Fetch (or load from cache) an OCI/Docker image rootfs for the given architecture ("arm64").
parse_image_ref
Parse a Docker/OCI image reference (e.g. alpine:3.21, python:3.13-alpine, ghcr.io/org/app:v1).