ocne image upload
Uploads an Oracle Container Host for Kubernetes (OCK) image to OCI object storage for a specific architecture.
ocne image upload
{-a|--arch} arch
[{-b|--bucket} name]
{-c|--compartment} name
[{-d|--destination} path]
{-f|--file} path
{-i|--image-name} name
{-t|--type} provider
{-v|--version} version
Where:
-
{-a|--arch} arch
-
The architecture of the image to upload. Options are
amd64
orarm64
. -
{-b|--bucket} name
-
The name or OCID of the object storage bucket. The default is
ocne-images
. -
{-c|--compartment} name
-
The name or OCID of the compartment.
-
{-d|--destination} path
-
The path to the destination. This can be any target available with the Open Container Initiative transports and formats. See
containers-transports(5)
for available options. For example, the URI to a container registry:--destination docker://myregistry.example.com/ock-ostree:latest
-
{-f|--file} path
-
The path to the image on the localhost.
-
{-i|--image-name} name
-
The name of the image to use when uploaded to the destination. The default is
ock
. -
{-t|--type} provider
-
The provider type. Options are
oci
andostree
. The default isoci
. -
{-v|--version} version
-
The target Kubernetes version embedded in the image.
Example 4-77 Upload an OCK image to OCI using defaults
To upload an OCK image for the
oci
provider to OCI using
the default options:
ocne image upload --compartment ocid1.compartment.oc1..UniqueID --file $HOME/.ocne/images/boot.qcow2-1.31-amd64.oci --arch amd64
Example 4-78 Upload an OCK image to OCI
To upload an OCK image for the
oci
provider to OCI using
more specific requirements:
ocne image upload --compartment ocid1.compartment.oc1..UniqueID --bucket my-ocne-images --file $HOME/.ocne/images/boot.qcow2-1.31-arm64.oci --image-name ock-arm64 --version 1.31 --arch arm64
Example 4-79 Upload an OSTree image to a container registry
To upload an OSTree archive image for the byo
provider to a
container registry:
ocne image upload --type ostree --file $HOME/.ocne/images/ock-1.31-amd64-ostree.tar --destination docker://myregistry.example.com/ock-ostree:latest --arch amd64
Example 4-80 Upload an OSTree image to a container registry
To upload an OSTree archive image for the byo
provider to a local
directory path:
ocne image upload --type ostree --file $HOME/.ocne/images/ock-1.31-amd64-ostree.tar --destination dir:ock-ostree --arch amd64