After deploying a container, you can use Workbench in the Elastic Container Instance (ECI) console to connect to the container and execute commands for debugging.
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 Workbench Connection in the upper-right corner of the page.
In the dialog box that appears, select a container and a command type, then click Log In.
Description:
The container that you select must be in the Running state.
For the command type, you can select a common command such as /bin/sh or /bin/bash. You can also select Custom Command and enter a command, such as /sbin/nologin.
NoteBy default, the current instance is selected. You can switch to another one.
Click More Options for more configurations. You can select a resource group and a region to filter instances.
Run commands as needed.
NoteA Workbench remote connection session lasts for six hours by default. If the session is idle for more than six hours, the connection is automatically disconnected, and you must reconnect to the instance.