Updated on 2023-06-25 GMT+08:00

Creating and Uploading a Custom Image

ModelArts allows you to use custom images to create training jobs and AI applications. Before creating and uploading a custom image, understand the following information:

  • Software Repository for Container (SWR)

    SWR provides easy, secure, and reliable management over Docker container images throughout their lifecycle, facilitating the deployment of containerized applications. You can push, pull, and manage container images through SWR console, SWR APIs, or community Command Line Interface (CLI).

    Obtain the custom images used by ModelArts for training or creating AI applications from the SWR service management list. Upload the custom images you create to SWR.

  • Specifications for custom images. For details about how to use a custom image for a training job, see Specifications for Custom Images Used for Training Jobs. For details about how to use a custom image for creating an AI application, see Custom Image Specifications for Creating AI Applications.

Creating and Uploading a Custom Image

  1. Use a local host or purchase a HUAWEI CLOUD cloud server to set up the Docker environment.
  2. Obtain the basic image from the local environment.
  3. Compile a Dockerfile based on your requirements to build a custom image. For details about how to efficiently compile Docker files, see Software Repository for Container Best Practices.
  1. After a custom image is created, upload the image to your SWR by referring to Uploading an Image Through a Container Engine Client.