OCI-IMAGE-TOOL-UNPACK(1)(OCI)
π oci-image-tool unpack β the manual page, but make it slay
okay bestie, welcome to the oci-image-tool unpack page from the OCI manual, section OCI, dated JULY 2016. sit down, hydrate, we're unpacking some layers π
β¨ NAME β¨
oci-image-tool unpack β unpack an image or image source layout π
πΈ SYNOPSIS πΈ
oci-image-tool unpack [src] [dest] [OPTIONS]
π¦ DESCRIPTION π¦
so what does this lil icon actually do? oci-image-tool unpack validates an application/vnd.oci.image.manifest.v1+json and then unpacks its layered filesystem to dest. that's it. that's the whole vibe. it checks the manifest is valid, then spills the layers out into your destination folder. main character behaviour honestly β¨
π OPTIONS π
--helpβ prints the usage statement. the classic. when in doubt, ask for help, no shame π«Ά--ref=[]β sets the search criteria for the validated reference. the format isA=B. the reference should point to a manifest or an index. for example:--ref name=v1.0 --ref platform.os=latest. it only supports three cases:name,platform.os, anddigest. those three. that's the list. don't try to freestyle a fourth one π--type=""β the type of file to unpack. if you leave it unset,oci-image-toolwill try to auto-detect the type for you (so thoughtful of it π ). it's one of"imageLayout,image,imageZip".--platform=""β specifies the os and architecture of the manifest, format isOS:Architecture. e.g.--platform linux:amd64. heads up: this one is only applicable if the reftype is anindex. if it's not an index, this option is just standing there looking pretty for no reason π
π EXAMPLES π
here's the whole little journey, step by step, look how cute:
$ skopeo copy docker://busybox oci:busybox-oci:latest
$ mkdir busybox-bundle
$ oci-image-tool unpack --ref name=latest busybox-oci busybox-bundle
$ tree busybox-bundle
busybox-bundle
βββ bin
β βββ [
β βββ [[
β βββ acpid
β βββ addgroup
β βββ add-shell
β βββ adduser
β βββ adjtimex
β βββ ar
β βββ arp
β βββ arping
β βββ ash
[...]
the [...] is doing a lot of heavy lifting there but honestly? respect. we don't need the full busybox manifest of a directory listing, we got the point, we ate π
π§ SEE ALSO π§
skopeo(1)β go say hi to its sibling, they're a whole duo π
π HISTORY π
Sept 2016 β originally compiled by Antonio Murdaca (runcom at redhat dot com). legend behaviour, we love a credited author π
β tiny note, bestie: this page is from the OCI-IMAGE-TOOL-UNPACK(1)(OCI) manual, Tool / Image section, and the whole thing is dated July 2016. periodt. 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