Skip to main content

Opening Ports for Cloud Container Instances

Updated at: 2025-11-18 15:11:25

When you deploy an application (such as a web service or model inference service) in a Cloud Container Instance and want to access it from an external network, you must open the corresponding ports in the Cloud Container Instance. This section describes how to open ports in a Cloud Container Instance so that applications deployed inside the instance can be accessed externally.

Prerequisites

  • A Cloud Container Instance has been created and is in the “Running” state. For detailed steps, see Create Cloud Container Instance.
  • The application is already running inside the instance and is listening on the required ports (for example, 9001 or 9002).

Procedure

  1. Sign in to the console and Choose "Product" > "Computing" > "Cloud Container Instance" to enter the CCI page.

  2. Click "Cloud Container Management" to open the CCI CCI list, then in the upper-right corner of the page, select the AIDC where the instance was created.

    alt text

  3. On the Container List tab, find the target Cloud Container Instance and choose the Open Port icon.

    alt text

  4. In the dialog box, review the ports that are already opened by default.

    Ports 9001 / 9002: Default system-provided ports used for exposing applications externally.

    alt text

  5. If your application's port is not within the default range, you can add a custom port under Custom Open Ports.

    a. Choose + Custom Open Port.

    b. Select an agreement and enter a port number (range: 1–65535). Then choose Generate. The system assigns a Public Access Address automatically.

    tip
    • You can add up to 10 ports for each instance.
    • Ports including 22, 8888, 9001, and 9002 are reserved by the system and cannot be configured again.
  6. Copy the generated Public Access Address and open it from a browser or client to access your application from the public network. alt text

  7. Run the following command in the instance’s Web CLI:

    python -m http.server 9001 

    Then open the Public Access Address for port 9001 in a browser. You should see a result similar to the following: alt text