| 1 | % OCI-IMAGE-TOOL-VALIDATE(1) OCI Image Tool User Manuals |
| 2 | % OCI Community |
| 3 | % JULY 2016 |
| 4 | # NAME |
| 5 | oci-image-tool validate \- Validate one or more image files |
| 6 | |
| 7 | # SYNOPSIS |
| 8 | **oci-image-tool validate** FILE... [OPTIONS] |
| 9 | |
| 10 | # DESCRIPTION |
| 11 | `oci-image-tool validate` validates the given file(s) against the OCI image specification. |
| 12 | |
| 13 | |
| 14 | # OPTIONS |
| 15 | **--help** |
| 16 | Print usage statement |
| 17 | |
| 18 | **--ref**=[] |
| 19 | Specify the search criteria for the validated reference, format is A=B. |
| 20 | Reference should point to a manifest or index. |
| 21 | e.g. --ref name=v1.0 --ref platform.os=latest |
| 22 | Only support `name`, `platform.os` and `digest` three cases. |
| 23 | Only applicable if type is image. |
| 24 | |
| 25 | **--type**="" |
| 26 | Type of the file to validate. One of "image,manifest,imageIndex,config" |
| 27 | |
| 28 | # EXAMPLES |
| 29 | ``` |
| 30 | $ skopeo copy docker://busybox oci:busybox-oci:latest |
| 31 | $ oci-image-tool validate --type image --ref name=latest busybox-oci |
| 32 | busybox-oci: OK |
| 33 | ``` |
| 34 | |
| 35 | # SEE ALSO |
| 36 | **skopeo**(1) |
| 37 | |
| 38 | # HISTORY |
| 39 | Sept 2016, Originally compiled by Antonio Murdaca (runcom at redhat dot com) |