Help Center/
Cloud Application Engine/
User Guide/
Instance Management/
Logging In to a Container Using CloudShell
Updated on 2024-05-25 GMT+08:00
Logging In to a Container Using CloudShell
If unexpected problems occur when you use a container, you can use CloudShell to log in to the container for debugging.
Only instances in the Running state support remote login.
Procedure
- Log in to CAE.
- Choose Instance List.
- Select the target environment and application from the drop-down lists in the upper part of the page, and click the target component.
- Select the target instance and click Remote Login in the Operation column.
- In the displayed dialog box, select the command to be executed.
- /bin/sh
- /bin/bash
Figure 1 Login command
- Click Confirm.
- Switch to CloudShell, initialize kubectl, and run the kubectl exec command to log in to the container.
Wait until the kubectl exec command is automatically executed.
Figure 2 Running the kubectl exec command to log in to the container
- Run commands in CloudShell as required to view and debug your container.
Parent topic: Instance Management
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot