Connect to an ECI instance using Workbench

更新时间:
复制 MD 格式

Workbench gives you a browser-based shell into any running container on Elastic Container Instance (ECI)—no SSH setup, open ports, or key management required. Use it to run diagnostic commands and troubleshoot issues directly inside a container.

Prerequisites

The container must be in the Running state.

Connect to a container

  1. Log in to the Elastic Container Instance console.

  2. In the upper-left corner of the top navigation bar, select a region.

  3. On the Container Group page, find the target instance and click its ID.

  4. On the instance details page, click the Workbench Connection tab.

  5. In the dialog box that appears, select a container and command type, then click Log In.

    • Only containers in the Running state are available for selection.

    • The default shell options are /bin/sh and /bin/bash. To use a different command, select Custom Command and enter it manually—for example, /sbin/nologin.

    Note
    • By default, the current instance is selected. To connect to a different instance, switch instances in this dialog box.

    • Click More Options to filter instances by resource group and region.

  6. Run your commands in the terminal. When you see the # prompt, the connection is established.

    Elastic Container Service!
    / # ls
    bin  dev  etc  home  proc  root  sys  tmp  usr  var
    / #
    Note

    A Workbench remote connection session lasts for 6 hours by default. If a session is idle for more than 6 hours, it automatically disconnects and you must reconnect to the instance.