Creating and Uploading a Custom Image
ModelArts allows you to use custom images to create training jobs and import models. 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 model training and import 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 model import, see Specifications for Custom Images Used for Importing Models.
Creating and Uploading a Custom Image
- Purchase a HUAWEI CLOUD ECS or local host to set up the Docker environment.
- Obtain the basic image from the local environment.
- Compile a Dockerfile based on your requirements to build a custom image. For details about how to efficiently compile a Dockerfile, see Software Repository for Container Best Practices.
- For details about how to create a custom image for a training job, see Example: Creating a Training Job Using a Custom Image.
- For details about how to use a custom image for a training job, see Building an Image Locally.
- After creating a custom image, upload it to SWR. For details, see Uploading an Image Through a Container Engine Client.
Last Article: Custom Image Overview
Next Article: For Training Models
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.