Log on to the Elastic Container Instance (ECI) console.
On the Elastic Container Instance page, click the container group that you want to debug. On the details page that appears, click the Terminal tab.
On the Terminal tab, select the container that you want to debug from the Container Name drop-down list. Make sure that the selected container is in the Running state. Then, select the required shell environment.
Click Terminal to connect to the specified container.
Run commands to debug the container.