| 1 | % OCI(1) OCI-UNPACK User Manuals |
| 2 | % OCI Community |
| 3 | % JULY 2016 |
| 4 | # NAME |
| 5 | oci-unpack \- Unpack an image or image source layout |
| 6 | |
| 7 | # SYNOPSIS |
| 8 | **oci-unpack** [src] [dest] [flags] |
| 9 | **oci-unpack** [--help|-v|--version] |
| 10 | |
| 11 | # DESCRIPTION |
| 12 | `oci-unpack` validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to `dest`. |
| 13 | |
| 14 | # FLAGS |
| 15 | **--help** |
| 16 | Print usage statement |
| 17 | |
| 18 | **--ref**="" |
| 19 | The ref pointing to the manifest to be unpacked. This must be present in the "refs" subdirectory of the image. (default "v1.0") |
| 20 | |
| 21 | **--type**="" |
| 22 | Type of the file to unpack. If unset, oci-unpack will try to auto-detect the type. One of "imageLayout,image" |
| 23 | |
| 24 | **-v**, **--version** |
| 25 | Print version information and exit. |
| 26 | |
| 27 | # EXAMPLES |
| 28 | ``` |
| 29 | $ skopeo copy docker://busybox oci:busybox-oci |
| 30 | $ mkdir busybox-bundle |
| 31 | $ oci-unpack --ref latest busybox-oci busybox-bundle |
| 32 | $ tree busybox-bundle |
| 33 | busybox-bundle |
| 34 | ├── bin |
| 35 | │ ├── [ |
| 36 | │ ├── [[ |
| 37 | │ ├── acpid |
| 38 | │ ├── addgroup |
| 39 | │ ├── add-shell |
| 40 | │ ├── adduser |
| 41 | │ ├── adjtimex |
| 42 | │ ├── ar |
| 43 | │ ├── arp |
| 44 | │ ├── arping |
| 45 | │ ├── ash |
| 46 | [...] |
| 47 | ``` |
| 48 | |
| 49 | # SEE ALSO |
| 50 | **skopeo**(1) |
| 51 | |
| 52 | # HISTORY |
| 53 | Sept 2016, Originally compiled by Antonio Murdaca (runcom at redhat dot com) |