Container Instances Shapes

A shape is a template that determines the number of OCPUs, amount of memory, and other resources that are allocated to a container instance. This topic provides basic information about the shapes that are available for container instances.

A flexible shape is a shape that lets you customize the number of OCPUs and the amount of memory when launching your container instance. When you create a container instance, you select the number of OCPUs and the amount of memory that you need for the containers that run on the instance. The network bandwidth scales proportionately with the number of OCPUs. This flexibility lets you build container instances that match your workload, enabling you to optimize performance and minimize cost.

Flexible memory is available on flexible shapes.

These are flexible shapes that you can use with Container Instances:

Shape OCPU Memory (GB) Ephemeral Storage (GB) Max Network Bandwidth Max VNICs Total: Linux
CI.Standard.E3.Flex

Minimum: 1 OCPU

Maximum: 64 OCPU (with extended OCPUs)

Minimum: 1 GB or a value matching the number of OCPUs, whichever is greater

Maximum: 64 GB per OCPU, up to 1024 GB total

15 1 Gbps per OCPU, maximum 40 Gbps

1 VNIC

CI.Standard.E4.Flex

Minimum: 1 OCPU

Maximum: 64 OCPU (with extended OCPUs)

Minimum: 1 GB or a value matching the number of OCPUs, whichever is greater

Maximum: 64 GB per OCPU, up to 1024 GB total

15 1 Gbps per OCPU, maximum 40 Gbps

1 VNIC

Ephemeral storage

Ephemeral storage is storage that is shared among a container instance and its containers. It is used for a variety of purposes, such as storing container images or backing each container's root overlay filesystem.

Ephemeral storage usage for a container instance is monitored through the Oracle Cloud Infrastructure Console.

  • On the Container instance details page, select the Metrics resource and view the graph titled Ephemeral storage used.

Ephemeral storage capacity is consumed by the following resources:

  • Container images
    • The ephemeral storage requires free space to download, unpack, and prepare a container image to start on a container instance. The amount of free space required can be up to twice the size of the container image. After the image is ready to use, some of the free space is returned.
    • For the default ephemeral storage of 15 GB, container image should be less than 7.5 GB.
    • If any of the container images cannot be downloaded and unpacked due to lack of free space, the creation of a container instance fails.
  • Container logs
    • Container logs retain up to 20 MB of log files per container.
  • Container root overlay filesystem
    • Ephemeral storage backs up files written to a container's root filesystem.
  • emptyDir volumes
    • You can use ephemeral storage as the back up storage for an emptyDir volume.
  • Internal system processes
    • The container instance uses a small amount of ephemeral storage for necessary system processes.