An ECS image stores information that you need for creating an ECS instance. You must select an image when you create an ECS instance. An image works as a copy that stores data from one or more disks. An ECS image may store data from a system disk or from both system and data disks.
|Public image||Public images are licensed by Alibaba Cloud, which are highly secure and stable. Public images include Windows Server system images and mainstream Linux system images. For more information, see Public image overview.||
Only Windows Server and Red Hat Enterprise Linux public images are charged. Check the actual fees when you use them to create instances. The Windows Server and Red Hat Enterprise Linux public images are licensed and maintained by Microsoft and Red Hat, respectively.
Other public images are free of charge.
|Custom image||Custom images are created from instances or snapshots, or imported from your local device. Only the creator of a custom image can use, share, copy, and delete the image. For more information, see Lifecycle of a custom image.||
Custom image fees are charged in the following situations:
|Shared image||Shared images are images shared to you by other Alibaba Cloud accounts. For more information, see Share images.||If a shared image is provided by Alibaba Cloud Marketplace, the shared image is billed according to the pricing standards of the independent software vendor (ISV).|
|Alibaba Cloud Marketplace image||
Alibaba Cloud Marketplace images are classified into the following types based on the ISV.
|Alibaba Cloud Marketplace images are billed according to the pricing standards of the ISV.|
Lifecycle of a custom image
Create a custom image
After you create an ECS instance by using an existing image, you can configure the instance as needed. For example, you can install software and deploy projects on the instance, and then create a custom image for the instance. For more information, see Create a custom image by using an instance. Instances created from the custom image contain all the configuration items that you have defined. For more information, see Create an instance by using a custom image.
You can create a custom image by using the snapshot of the system disk or both the system and data disks. For more information, see Create a custom image by using a snapshot.
You can also import a custom image from a local device. For more information, see Import custom images.
Share and copy a custom image
Each image belongs to a region. For example, if you create a custom image in the China (Beijing) region, you can use the image to create ECS instances in this region only.
- When you share the image with another Alibaba Cloud account, this account can use the image in the China (Beijing) region only. To share the image to an Alibaba Cloud account who needs to use the image in a different region, copy the image to the target region, and then share the image to the target Alibaba Cloud account. For more information, see Share images.
- If you need to use the image in another region, copy the image to that region. The image copy is signed a unique UID. It is independent of the original image. For more information, see Copy custom images.
Change images for an ECS instance
- You can replace the image of the system disk with a public image. For more information, see Replace the system disk by using a public image.
- You can also replace the image of the system disk with a non-public image, for example, a custom, shared, or Alibaba Cloud Marketplace image. For more information, see Replace the system disk (non-public image).
Delete a custom image
You can delete customs images that you no longer need. After a custom image is deleted, you can no longer use it to created ECS instances. You cannot Reinitialize a cloud disk of an ECS instance that is created from the image.
A custom image consists of snapshots of disks that are attached to an ECS instance. The delete operation does not delete snapshots contained in the image. To delete the snapshots, navigate to the Snapshots page and delete the target snapshots. For more information, see Delete custom images.
You can also perform API operations to manage an image. For more information, see API overview.