All Products
Search
Document Center

Elastic Container Instance:Increase the size of temporary storage space

Last Updated:Jun 21, 2026

Each Elastic Container Instance (ECI) instance provides 30 GiB of temporary storage space free of charge. If you require more storage, you can increase its size.

Background information

By default, each ECI instance provides 30 GiB of temporary storage space free of charge, as shown below.

:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
overlay          30G  1.6G   27G   6% /
tmpfs            64M     0   64M   0% /dev
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vda5        30G  1.6G   27G   6% /etc/hosts
shm              64M     0   64M   0% /dev/shm
tmpfs           1.9G     0  1.9G   0% /proc/acpi
tmpfs           1.9G     0  1.9G   0% /proc/scsi
tmpfs           1.9G     0  1.9G   0% /sys/firmware
Important

The container image used to start the ECI instance occupies part of this 30 GiB space. The space required for the container image is at least twice the image size. The exact amount depends on the image’s compression ratio.

If your storage requirements exceed 30 GiB, you can increase its size. You are charged for the additional temporary storage space based on its capacity and usage duration. For more information, see Billing of temporary storage space.

Configuration

API

When you call the CreateContainerGroup OpenAPI operation to create an ECI instance, you can set the EphemeralStorage parameter to increase the temporary storage space. The following table describes the EphemeralStorage parameter. For more information, see CreateContainerGroup.

Parameter

Type

Example

Description

EphemeralStorage

Integer

20

The amount of temporary storage space to add. Unit: GiB.

Console

When you create an ECI instance on the Elastic Container Instance buy page, in the Container Group Configurations section, expand Advanced Settings and enter the size of the additional temporary storage space.

Temporary storage space and image caches

The location of the temporary storage space depends on how the image cache is created.

  • An automatically created image cache resides on the system disk. When you create an ECI instance that uses an automatically created image cache, the temporary storage space is also on the system disk. In this case, the size of the system disk partition (/dev/vda5) is the same as the temporary storage space size, as shown in the following output.

    :/# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    overlay          50G  1.6G   46G   4% /
    tmpfs            64M     0   64M   0% /dev
    tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    /dev/vda5        50G  1.6G   46G   4% /etc/hosts
    shm              64M     0   64M   0% /dev/shm
    tmpfs           1.9G     0  1.9G   0% /proc/acpi
    tmpfs           1.9G     0  1.9G   0% /proc/scsi
    tmpfs           1.9G     0  1.9G   0% /sys/firmware
  • A manually created image cache resides on a data disk. When you create an ECI instance that uses a manually created image cache, the temporary storage space is also on the data disk. In this case, the system disk partition (/dev/vda5) remains at its default size of 30 GiB and is unused, as shown in the following output.

    :/ # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    overlay          50G  1.6G   46G   4% /
    tmpfs            64M     0   64M   0% /dev
    tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    /dev/vda5        30G  1.9G   27G   7% /etc/hosts
    shm              64M     0   64M   0% /dev/shm
    tmpfs           1.9G     0  1.9G   0% /proc/acpi
    tmpfs           1.9G     0  1.9G   0% /proc/scsi
    tmpfs           1.9G     0  1.9G   0% /sys/firmware