Articles on: KPS

KPS - How can I connect inside a container as root?

Procedure to connect as root on a KPS container


With our KPS, the best way to connect into a container is to deploy a Portainer on the KPS instance.

Create a portainer container

Go into the app store
Search for Portainer

Deploy the Portainer service

Configure Portainer container

Enable Websocket support in HTTP Settings of the application configuration
Save & Restart the app
Wait 60 seconds for the service to restart
Enable HTTPS and add your custom domain in HTTP Settings of the application configuration


Connect to Portainer and ssh into a container

Go to you portainer web server url
Create your admin credentials for portainer

Go to Home and Click on Live connect on local
In the left menu, navigate to containers
Use the shell quick action to connect to the container of your choice

Use the correct Command ans User, try first with /bin/bash and if it is not working try /bin/sh. Use the user of your choice, if you require privileged in the container use root
Connect to the container

Updated on: 10/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!