Image Creation

Obtaining an Inference Image

Use either of the following methods to obtain an inference image:

  • You are advised to download the inference base image (for example, ascend-infer and mindie) from the Ascend image repository based on the system architecture (ARM or x86_64).
    Note that the default user of the inference base image is a non-root user in versions later than 21.0.4. After downloading the base image, change the default user to root.

    The base image does not contain files such as inference models and scripts. You need to customize the base image (for example, add inference script code and models) based on your requirements.

  • (Optional) If you need a more personalized inference environment, you can modify the downloaded inference base image using Dockerfile.

    After the customization, you can rename the inference image for easier management and use.

Hardening an Image

You can perform security hardening on the downloaded or created inference base image to improve the image security. For details, see Hardening Container Security.