All Products
Search
Document Center

Elastic Container Instance:Connect to an elastic container instance

更新時間:Mar 05, 2024

This topic describes how to connect to an elastic container instance by using the Workbench in the Elastic Container Instance console. This topic also describes how to run a command to debug a container in the elastic container instance.

Prerequisites

The container in the elastic container instance that you want to debug is in the Running state.

Procedure

  1. Log on to the Elastic Container Instance console.

  2. In the top navigation bar, select a region.

  3. On the Container Group page, find the instance whose container you want to debug and click the ID of the instance.

  4. On the instance details page, click the Workbench Connection tab.

  5. In the dialog box that appears, select a container and a command type, and then click OK.

    Description:

    • The container that you select must be in the Running state.

    • For Shell commands, you can select a regular command such as /bin/sh and /bin/bash. You can also select Custom Command and enter custom command content, for example, /sbin/nologin.

    Note
    • By default, the system automatically selects the current instance. You can also select another instance.

    • You can click More Options to view more configuration items. You can select a resource group and a region to filter instances.

  6. Enter and run a command based on your business requirements.

    workbench1

    Note

    By default, a Workbench remote connection persists for six hours. If you do not perform operations for six hours, the remote connection is closed. You must reconnect to the instance.