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
Portainerservice
Configure Portainer container
- Enable
Websocket supportin 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 connecton 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/bashand 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: 09/11/2024
Thank you!
