Debian Codegraph @

man/oci-image-tool-create.1.md

raw symbols SCIP
1 % OCI-IMAGE-TOOL-CREATE(1) OCI Image Tool User Manuals
2 % OCI Community
3 % JULY 2016
4 # NAME
5 oci-image-tool create \- Create an OCI runtime bundle
6
7 # SYNOPSIS
8 **oci-image-tool create** [src] [dest] [OPTIONS]
9
10 # DESCRIPTION
11 `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.
12
13 Also translates the referenced config from application/vnd.oci.image.config.v1+json to a
14 runtime-spec-compatible `dest/config.json`.
15
16 # OPTIONS
17 **--help**
18 Print usage statement
19
20 **--ref**=[]
21 Specify the search criteria for the validated reference, format is A=B.
22 Reference should point to a manifest or index.
23 e.g. --ref name=v1.0 --ref platform.os=latest
24 Only support `name`, `platform.os` and `digest` three cases.
25
26 **--rootfs**=""
27 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")
28
29 **--type**=""
30 Type of the file to unpack. If unset, oci-image-tool will try to auto-detect the type. One of "imageLayout,image,imageZip"
31
32 **--platform**=""
33 Specify the os and architecture of the manifest, format is OS:Architecture.
34 e.g. --platform linux:amd64
35 Only applicable if reftype is index.
36
37 # EXAMPLES
38 ```
39 $ skopeo copy docker://busybox oci:busybox-oci:latest
40 $ mkdir busybox-bundle
41 $ oci-image-tool create --ref name=latest busybox-oci busybox-bundle
42 $ cd busybox-bundle && sudo runc run busybox
43 [...]
44 ```
45
46 # SEE ALSO
47 **runc**(1), **skopeo**(1)
48
49 # HISTORY
50 Sept 2016, Originally compiled by Antonio Murdaca (runcom at redhat dot com)