You can create a custom image using an ECS instance, namely, you fully copy all its disks and pack them into an image.
During this process, snapshots are automatically created for all disks of the instance, including the system disk and data disks. All the created snapshots compose a new custom image. See the following picture.
In addition, you can create a custom image based on the snapshot, see Create a custom image using a snapshot for instruction.
- To prevent the data privacy breach, make sure you delete all the confidential data in the ECS instance before creating a custom image.
- During creation, do not change the status of the instance. Do not stop, start, or restart the instance.
- If your custom image contains the data on the data disk, new data disk along with the ECS instance are created together. The data on the data disk duplicates the data disk snapshot in your custom image according to the mount device.
- You cannot export custom images which contains the data on the data disk.
- You cannot use a custom image which contains the data on the data disk to replace the system disk.
See the following steps to create a custom image.
- Log on to the ECS console.
- Click Instances on the left navigation pane.
- Select a region.
- Select an instance, and then choose More > Create Custom Image.
- Enter the name and description.
- Click Create.
After creating the custom image, you may want to Create an instance using a custom image.