oci -- Manage OCI and Docker Images in OCaml#
OCaml library and CLI for interacting with OCI and Docker image
specifications. The oci binary fetches image layers, inspects image
contents on the local filesystem, and provides a git-backed view for
comparing layers.
Features#
- OCaml API for OCI and Docker image manifests
- Fetch layers of an OCI or Docker image
- Checkout image contents with git history for diff inspection between layers
Installation#
Install with opam:
$ opam install oci
If opam cannot find the package, it may not yet be released in the public
opam-repository. Add the overlay repository, then install it:
$ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git
$ opam update
$ opam install oci
Usage#
Fetching Image Layers#
$ oci fetch IMAGE_NAME[:TAG]
This command downloads the image layers to the current directory.
By default TAG is latest.
Checking Out Image Contents#
$ oci checkout [TAG]
After running this command, you'll find the image's contents extracted to the current directory. The checkout includes a git history, allowing you to inspect the differences between layers.
Licence#
MIT