Stopping a Container Instance
Stop a container instance.
Important
Resource Billing for Stopped Instances: For container instances, billing depends on the shape used to create the container instance. Billing for an instance pauses when the container instance stops. However, billing may be applied for other run states. For more information, see: Resource Billing for Stopped Container Instances.
Resource Billing for Stopped Instances: For container instances, billing depends on the shape used to create the container instance. Billing for an instance pauses when the container instance stops. However, billing may be applied for other run states. For more information, see: Resource Billing for Stopped Container Instances.
- Navigate to the Container Instances list page. If you need help finding the list page, see Listing Container Instances.
- Select the container instance that you're interested in.
- From the Actions menu, select Stop.
The container instance stops all containers before stopping the container instance itself.
- Select Stop instance.
Caution
When you stop a container instance, any data on the ephemeral storage is lost.Important
When you create a container, you can set the amount of time that the timeout allows on the container instance. If you don't set a value, the default value is 0 seconds. If containers take more time to stop than the timeout value allows, the service terminates them.Use the
oci container-instances container-instance stopcommand to stop a container instance. To use this command, replace id with your resource OCID.export id=ocid1.computecontainerinstance.oc1.iad.example oci container-instances container-instance stop --container-instance-id "$id"For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
To manage the lifecycle state of container instances, use these operations: