Connect to a container
When the container state is Ready
, you can start to use it. You can connect to interactive containers via Jupyter Notebook (browser-based web development environment) or SSH. Please refer to the following instructions for the procedure.
Prerequisites
- Create an interactive container.
- If you choose to use TWSC portal, after the container is created, please click the container you want to connect to on the Interactive Container Management page and enter the Interactive Container Details page.
- If you choose to use TWCC CLI operation, please obtain the container's ID first.
Methods for connecting to a container
You can connect to your container using Jupyter Notebook or SSH.
Jupyter Notebook
- TWSC Portal
- TWCC CLI
- Step 1. Click LAUNCH on the right side of Jupyter to open the built-in Jupyter Notebook operation webpage.
- Step 2. Then click New > Terminal to access the container environment. Then you can start AI computing in the container.
- Step 1. Get the Jupyter Notebook URL of the container whose container ID is
1249374
.
twccli ls ccs -s 1249374 -gjpnb
- Step 2. Click URL (CLI) to open Jupyter Notebook.
- Step 3. Click New > Terminal to access the container environment.
SSH
- TWSC Portal
- TWCC CLI
- Step 1. Click the Copy icon on the right side of SSH to copy the SSH command with system account and IP address.
- Step 2. Open Terminal in the local device, enter the SSH command, system account and system password for connecting to containers (no need to enter OTP). The system account and system password was established in TWSC Member Center. You can also use other third-party software such as PuTTy to connect to your container.
- Step 1. Get the SSH command of the container whose container ID is
1249374
twccli ls ccs -s 1249374 -gssh
- Step 2. Open Terminal in the local device, copy and paste the command > insert the superaccount password to launch the container.
- Exit the container
- Enter
exit
to end your container connection and leave SSH session.
- Enter