Links

Shell access for Docker or ECS

Enabling shell access using native Docker or ECS
DuploCloud allows shell access into the deployed containers. Shell access is enabled differently, depending on whether you use native Docker or ECS.

Access to the Docker Native container shell

To enable shell access for the DuploCloud Docker Native container system:
  1. 1.
    In the DuploCloud Portal, navigate to Docker -> Services, displaying the Services page.
  2. 2.
    From the Docker list box, click Enable Docker Shell. The Start Shell Service pane displays.
Enable Docker Shell option in the Options Menu for the Services page
Start Shell Service pane
  1. 3.
    From the Certificate list box, select a certificate name.
  2. 4.
    From the Visibility list box, select Public.
  3. 5.
    Click Update.
A provisioned service named dockerservices-shell is created, enabling you to access the Service containers using SSH.

Access to the Kubectl (K8s) shell

Optionally, DuploCloud provides just-in-time (JIT) access to both the container shell and the kubectl shell directly from your browser.
In the DuploCloud Portal:
  1. 1.
    In the Tenant list box, on the upper-left side of the DuploCloud Portal, select the Default Tenant.
  2. 2.
    Navigate to Docker -> Services, displaying the Services page.
  3. 3.
    Click Enable Docker Shell. The Start Shell Service pane displays.
  4. 4.
    From the Platform list box, select Kubernetes.
  5. 5.
    From the Certificate list box, select a certificate name.
  6. 6.
    From the Visibility list box, select Public.
  7. 7.
    Click Update.
Start Shell Service pane with Kubernetes (ECS) selected for Platform
Now you can begin using the Kubernetes (K8s) shell from the DuploCloud Portal for K8s services.
  1. 1.
    Navigate to Kubernetes -> Services. The Service page displays.
  2. 2.
    From the KubeCtl list box, click KubeCtl Shell.
The Services page with the KubeCtl list box and KubeCtl Shell button highlighted

View the Host and container shell for Docker and Kubernetes

  1. 1.
    In the DuploCloud Portal, navigate to Kubernetes -> Containers.
  2. 2.
    Click the options menu (
    ) icon in the appropriate row.
  3. 3.
    Select Container Shell or Host Shell from the Actions menu. The container or host shell launches in AWS Systems Manager.
Container Shell and Host Shell launch options in the menu column of the Containers page

View the ECS task shell

You can also view the ECS task shell and select the container shell to which you want to connect.
  1. 1.
    In the DuploCloud Portal, navigate to Cloud Services -> ECS, displaying the ECS Task Definition page.
  2. 2.
    Select the name from the TASK DEFINITION FAMILY NAME column.
  3. 3.
    Select the Tasks tab.
  4. 4.
    To display the ECS task shell for any task, click on the (>_) icon in the Actions column of the appropriate row. Click on Console for AWS Console access, Logs for log data, or a container task shell of your choice. A browser launches to give you access to the resource you select.
ECS task shell option in the menu of the Tasks tab