oci-image-tool-create(1)

oci-image-tool-create1

Create an oci runtime bundle

Usage

oci-image-tool create [src] [dest] [OPTIONS]

OCI Community JULY 2016

Overview

oci-image-tool create validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to dest/rootfs, although the target directory is configurable with --rootfs. See oci-image-tool unpack(1) for more details on this process.

Also translates the referenced config from application/vnd.oci.image.config.v1+json to a runtime-spec-compatible dest/config.json.

Options

--help
Print usage statement

--ref=[]
Specify the search criteria for the validated reference, format is A=B.
Reference should point to a manifest or index.
e.g. --ref name=v1.0 --ref platform.os=latest
Only support name, platform.os and digest three cases.

--rootfs=""
A directory representing the root filesystem of the container in the OCI runtime bundle. It is strongly recommended to keep the default value. (default "rootfs")

--type=""
Type of the file to unpack. If unset, oci-image-tool will try to auto-detect the type. One of "imageLayout,image,imageZip"

--platform=""
Specify the os and architecture of the manifest, format is OS:Architecture.
e.g. --platform linux:amd64
Only applicable if reftype is index.

Examples

$ skopeo copy docker://busybox oci:busybox-oci:latest
$ mkdir busybox-bundle
$ oci-image-tool create --ref name=latest busybox-oci busybox-bundle
$ cd busybox-bundle && sudo runc run busybox
[...]

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

History

Sept 2016, Originally compiled by Antonio Murdaca (runcom at redhat dot com)

From oci-image-tool 1.0.0~rc2+really.rc1+dfsg-2+b23 in Debian 13 (Trixie). Parsed by carta from the page's man source.