Use either of the following methods to obtain an inference image:
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.
After the customization, you can rename the inference image for easier management and use.
You can perform security hardening on the downloaded or created inference base image to improve the image security. For details, see Hardening Container Security.