This topic describes how to connect to containers in an elastic container instance by using the Elastic Container Instance console and how to run commands to debug the containers.
Containers in the elastic container instance are 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 to be debugged and click its ID.
On the page that appears, click the Terminal tab.
Select a container from the drop-down list and run a command to debug the container.
Select the container that you want to debug.
Select the /bin/sh command.
In addition to common commands such as /bin/sh and /bin/bash, you can also select Custom Command and enter custom command content. Example: /sbin/nologin.
After the container is connected, the interface of the container is displayed in the lower part of the page.
Enter and run your command.