-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# oci-image-tool | ||
|
||
Simple command line tool to work with OCI images. | ||
|
||
## Usage | ||
``` | ||
A tool for working with OCI images | ||
Usage: | ||
oci-image-tool [command] | ||
Available Commands: | ||
create-runtime-bundle Create an OCI image runtime bundle | ||
unpack Unpack an image or image source layout | ||
validate Validate one or more image files | ||
Use "oci-image-tool [command] --help" for more information about a command. | ||
``` | ||
|
||
## Examples | ||
|
||
### create-runtime-bundle | ||
``` | ||
$ skopeo copy docker://busybox oci:busybox-oci | ||
$ mkdir busybox-bundle | ||
$ ci-image-tool create-runtime-bundle --ref latest busybox-oci busybox-bundle | ||
$ cd busybox-bundle && sudo runc start busybox | ||
[...] | ||
``` | ||
|
||
### unpack | ||
``` | ||
$ skopeo copy docker://busybox oci:busybox-oci | ||
$ mkdir busybox-bundle | ||
$ oci-image-tool unpack --ref latest busybox-oci busybox-bundle | ||
tree busybox-bundle | ||
busybox-bundle | ||
├── bin | ||
│ ├── [ | ||
│ ├── [[ | ||
│ ├── acpid | ||
│ ├── addgroup | ||
│ ├── add-shell | ||
│ ├── adduser | ||
│ ├── adjtimex | ||
│ ├── ar | ||
│ ├── arp | ||
│ ├── arping | ||
│ ├── ash | ||
[...] | ||
``` | ||
|
||
### validate | ||
``` | ||
$ skopeo copy docker://busybox oci:busybox-oci | ||
$ oci-image-tool validate --type imageLayout --ref latest busybox-oci | ||
busybox-oci: OK | ||
``` |