Restarting a Container Instance
Restart a container instance.
Note
If a container instance is scheduled for infrastructure maintenance, when it restarts, it restarts on a healthy physical host.
If a container instance is scheduled for infrastructure maintenance, when it restarts, it restarts on a healthy physical host.
Caution
When you restart a container instance, any data on the ephemeral storage is lost.
When you restart a container instance, any data on the ephemeral storage is lost.
Perform these steps to restart a container instance.
- Navigate to the Container Instances list page. If you need help finding the list page, see Listing Container Instances.
- Select the name of the container instance that you're interested in.
- From the Actions menu, select Restart. Important
If containers take more time to stop than the timeout allows, the service terminates them. When a container stops or restarts, any data on the ephemeral storage is lost and the containers are recreated with new ephemeral storage. - Select Restart container instance.
Use the
container-instances container-instance restartcommand to restart 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 restart --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: