Manage container images

You can use Skopeo to copy container images from public registries to your private registry within the Mission Control environment. Skopeo is a command-line utility that allows you to interact with container images and registries. You can copy images between different registries, inspect remote images, and more.

You can also use the KOTS CLI with the kubectl plugin to push container images to a private registry from an airgap file.

Storing container images in private registries enhances security by ensuring that your images are scanned and vetted within your controlled environment. Storing images locally also reduces latency and dependency on external networks, improving performance and reliability.

Prerequisites

To copy container images, you need the following:

  • Skopeo installed.

  • Credentials to access the private registry.

  • Access to Mission Control and permissions to manage container images.

Copy or push container images

Use Skopeo to copy images from public registries to your private registry, or use the KOTS CLI to push container images to your private registry from an airgap file.

  • Skopeo

  • KOTS CLI

Copy container images

To copy an image from a public registry to your private registry in Mission Control, do the following:

  1. Authenticate to your private registry:

    skopeo login PRIVATE_REGISTRY_HOST

    Replace PRIVATE_REGISTRY_HOST with the host name of the private registry.

  2. Copy the container to your private registry. The following example uses the DSE registry. Replace the registry path with your target container image registry and tag.

    skopeo copy docker://cr.dtsx.io/datastax/dse-server:6.9.0 docker://PRIVATE_REGISTRY_HOST/PRIVATE_REGISTRY_NAMESPACE/dse-server:6.9.0

    Replace the following:

    • PRIVATE_REGISTRY_HOST: the host name of the private registry

    • PRIVATE_REGISTRY_NAMESPACE: the namespace of the private registry

Verify images

To verify that the image copied successfully to your private registry, you can inspect it:

skopeo inspect docker:/PRIVATE_REGISTRY/IMAGE_NAME:TAG

Replace the following:

  • PRIVATE_REGISTRY: the private registry

  • IMAGE_NAME: the image name to inspect

  • TAG: the tag of the image

To push container images to a private registry from an airgap file, do the following:

  1. Download the airgap bundle:

    curl -O https://downloads.datastax.com/mission-control/mission-control-vMISSION_CONTROL_VERSION.airgap

    Replace MISSION_CONTROL_VERSION with the version number that you are downloading.

  2. Push images to your registry:

    kubectl kots admin-console push-images \
      ./mission-control-vMISSION_CONTROL_VERSION.airgap \
      PRIVATE_REGISTRY_DOMAIN/REGISTRY_NAMESPACE \
      --registry-username REGISTRY_USERNAME \
      --registry-password REGISTRY_PASSWORD

    Replace the following:

    • MISSION_CONTROL_VERSION: the Mission Control airgap bundle version number

    • PRIVATE_REGISTRY_DOMAIN: the private registry domain

    • REGISTRY_NAMESPACE: the registry namespace

    • REGISTRY_USERNAME: the username for the registry

    • REGISTRY_PASSWORD: the password for the registry

Troubleshoot registry issues

To troubleshoot connection issues, ensure you have network access to both the source and destination registries. If you encounter authentication problems, verify your credentials and permissions for the private registry in Mission Control. For command-related errors, carefully review the error messages and see the Skopeo documentation for more information.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com