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
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 the ID of the instance.
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.
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.
NoteBy 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.
Enter and run a command based on your business requirements.
NoteBy 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.