diff --git a/Makefile b/Makefile index 1ff6efa..ba8680c 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ all: tool man .PHONY: man man: go-md2man -in "man/oci-image-tool.1.md" -out "oci-image-tool.1" - go-md2man -in "man/oci-image-tool-create.1.md" -out "oci-image-tool-create.1" + go-md2man -in "man/oci-image-tool-create-bundle.1.md" -out "oci-image-tool-create-bundle.1" go-md2man -in "man/oci-image-tool-unpack.1.md" -out "oci-image-tool-unpack.1" go-md2man -in "man/oci-image-tool-validate.1.md" -out "oci-image-tool-validate.1" diff --git a/cmd/oci-image-tool/create.go b/cmd/oci-image-tool/bundle.go similarity index 99% rename from cmd/oci-image-tool/create.go rename to cmd/oci-image-tool/bundle.go index 3b5f518..4542edd 100644 --- a/cmd/oci-image-tool/create.go +++ b/cmd/oci-image-tool/bundle.go @@ -76,7 +76,7 @@ func createHandle(context *cli.Context) error { } var createCommand = cli.Command{ - Name: "create", + Name: "create-bundle", Usage: "Create an OCI image runtime bundle", Action: createHandle, Flags: []cli.Flag{ diff --git a/man/oci-image-tool-create.1.md b/man/oci-image-tool-create-bundle.1.md similarity index 71% rename from man/oci-image-tool-create.1.md rename to man/oci-image-tool-create-bundle.1.md index 33ad68e..9173732 100644 --- a/man/oci-image-tool-create.1.md +++ b/man/oci-image-tool-create-bundle.1.md @@ -2,13 +2,13 @@ % OCI Community % JULY 2016 # NAME -oci-image-tool create \- Create an OCI runtime bundle +oci-image-tool create-bundle \- Create an OCI runtime bundle # SYNOPSIS -**oci-image-tool create** [src] [dest] [OPTIONS] +**oci-image-tool create-bundle** [src] [dest] [OPTIONS] # DESCRIPTION -`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. +`oci-image-tool createi-bundle` 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. Also translates the referenced config from application/vnd.oci.image.config.v1+json to a runtime-spec-compatible `dest/config.json`. @@ -35,7 +35,7 @@ runtime-spec-compatible `dest/config.json`. ``` $ skopeo copy docker://busybox oci:busybox-oci $ mkdir busybox-bundle -$ oci-image-tool create --ref latest busybox-oci busybox-bundle +$ oci-image-tool create-bundle --ref latest busybox-oci busybox-bundle $ cd busybox-bundle && sudo runc run busybox [...] ```