Creating a Catalog Mirror

Mirror the images in an application catalog to a private container registry.

Images are only pushed to a private container registry when you specify the --push option.

Use the ocne catalog mirror command to mirror the container images to a local container registry. The syntax to use is:

ocne catalog mirror 
[{-a|--archive} path]
[{-c|--config} path]
{-d|--destination} URI
[{-o|--download}]                
{-N|--name} name
[{-p|--push}]
[{-s|--source} registry]
[{-q|--quiet}]

For more information on the syntax options, see Oracle Cloud Native Environment: CLI.

Example 3-1 Mirror the Oracle catalog

To mirror the Oracle catalog to a private container registry:

ocne catalog mirror --destination myregistry.example.io --push

Example 3-2 Mirror the embedded Oracle catalog

To mirror the Oracle catalog embedded in the CLI to a private container registry:

ocne catalog mirror --name embedded --destination myregistry.example.io --push

Example 3-3 Mirror specific applications

To mirror only those images that are used by the applications listed in a cluster configuration file to a private container registry:

ocne catalog mirror --destination myregistry.example.io --config mycluster.yaml --push

Example 3-4 Download specific applications to a named archive file

To download the images listed in a cluster configuration file to a specified local archive file:

ocne catalog mirror --config mycluster.yaml --download --archive $HOME/myimages.tgz