OCI-IMAGE-TOOL-CREATE(1)(OCI)
β¨ oci-image-tool create β¨
the oci-image-tool create of it all, bestie β this one lives in the OCI manual, and honestly? she's the one who unpacks the whole bundle for you π
NAME
oci-image-tool create β Create an OCI runtime bundle π
SYNOPSIS
oci-image-tool create [src] [dest] [OPTIONS]
DESCRIPTION
okay so real talk, what does she actually do? π¦
oci-image-tool create validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to dest/rootfs β yes the target directory is configurable, you just use --rootfs for that. if you want the whole breakdown on how that unpacking process goes, go read oci-image-tool unpack(1), she explains it better, no cap. π
she also translates the referenced config from application/vnd.oci.image.config.v1+json into a runtime-spec-compatible dest/config.json. two jobs, one icon π
OPTIONS
--helpβ Print usage statement. the "help me bestie" button, always there for you π«Ά--ref=[]β Specify the search criteria for the validated reference, format isA=B. The reference should point to a manifest or an index. e.g.--ref name=v1.0 --ref platform.os=latest. Only three cases are supported:name,platform.osanddigest. so like, pick your fave and go β¨--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-toolwill try to auto-detect the type. One of"imageLayout,image,imageZip". she'll guess if you don't tell her, but telling her is nicer π--platform=""β Specify the os and architecture of the manifest, format isOS:Architecture. e.g.--platform linux:amd64. Only applicable if reftype is index. index-only, periodt π
EXAMPLES
here's the whole little ritual, copy-paste coded π
$ 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
[...]
SEE ALSO
runc(1), skopeo(1) β the rest of the squad π
HISTORY
Sept 2016, Originally compiled by Antonio Murdaca (runcom at redhat dot com) π
and that's the whole page, bestie!! πΈ she's from the OCI Community, dated JULY 2016, and she ships out under the Tool / Image banner in the OCI-IMAGE-TOOL-CREATE(1)(OCI) manual. go unpack something iconic π
β¨
π¦ where this page comes from
- debian bookworm: oci-image-tool 1.0.0~rc2+really.rc1+dfsg-2+b12 Β· Apache-2.0
- ubuntu noble: oci-image-tool 1.0.0~rc2+really.rc1+dfsg-2build1 Β· Apache-2.0
- ubuntu questing: oci-image-tool 1.0.0~rc2+really.rc1+dfsg-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms