Listing Container Instances

View the container instances in a specific compartment.

  • This task documents the steps for listing container instances using the Oracle Cloud Console.

    1. In the navigation menu , select Developer Services. Under Containers & Artifacts, select Container Instances.
    2. The Container instances list page opens. All container instances in the selected compartment are displayed in a table.
    3. To view the container instances in a different compartment, use the Compartment filter to switch compartments.
      Note

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
    4. Select the name of the container instance that you're interested in. The details page for the selected container instance is displayed.

    Container Instance Actions

    After selecting a container instance, the details page is displayed. Perform actions directly on a container instance from the Actions menu. The following actions are available:

    • Edit VNIC: Edit the Name, Hostname, or Fully qualified domain name for the VNIC.
    • Start: Start the container instance.
    • Stop: Stop the container instance.
    • Restart: Restart the container instance.
    • Move resource: Move the container instance to another compartment.
    • Delete: Delete the container instance.

    To create a container instance, see: Creating a Container Instance.

    Container Instance Details

    The following tabs are available for each container instance:'

    • Details: General information about the container instance, including its OCID, compartment, and VNIC information.
    • Containers: The containers in this container instance. A maximum of 60 containers can be deployed to an instance.
    • Storage: The volumes associated with this container instance.
    • Work requests: Any ongoing work requests for this instance.
    • Monitoring: Default metric views for this instance.
    • Tags: Any tags associated with this instance.

    Container Actions

    After selecting a container, the container details page is displayed. Perform actions directly on a container from the Actions menu. The following actions are available:

    • View command
    • View entrypoint arguments
    • View environment variables
    • View logs

    Container Details

    The following tabs are available for each container:

    • Details: General information about the container, including its entry point command, command arguments, image URL, and VNIC information.
    • Storage: The volumes associated with this container.
    • Work requests: Any ongoing work requests for this container.
    • Monitoring: Default metric views for this container.
    • Tags: Any tags associated with this container.
  • Use the oci container-instances container list command to list container instances. To use this command, replace compartment_id with your own OCID.

    export compartment_id=<substitute-value-of-compartment_id>
    oci container-instances container list --compartment-id $compartment_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.

    Use the ListContainerInstances operation.