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.
The container in the elastic container instance that you want to debug is in the Running state.
Log on to the Elastic Container Instance console.
In the top navigation bar, select a region.
On the Container Group page, find the instance whose container you want to debug and click its ID.
On the instance details page, click the Workbench Connection tab.
In the dialog box that appears, select a container and a command type, and then click OK.
You can select a container that is only 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. Example: /sbin/nologin.
The system automatically selects the current instance. You can also switch to another instance. You can click the More Options button to view more configuration items. Then, you can select a resource group and a region to further filter instances.
Enter and run a command based on your business requirements.Note
By default, a Workbench remote session persists for 6 hours. If you do not perform operations for 6 hours, the remote connection is closed. You must reconnect to the instance.