> For the complete documentation index, see [llms.txt](https://docs.infra.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infra.app/features/container-shell-access.md).

# Container shell access

Debug an app hosted on Kubernetes by opening a shell to its container

### Opening a Shell

When viewing a workload, click on the ***...*****&#x20;button** (or right click) on any pod, and then click **Open Shell** to open a new shell session with a pod's container. If there are many containers, Infra App will show a list of containers to choose from.

![](https://2997771214-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ll2YPh7b5O2frfEMtKk%2F-MKCgCcYJVIZ7pcrzEB9%2F-MKCiVbXWg5RDegJw4rF%2Fopen%20shell.png?alt=media\&token=b4bba615-0233-4dd4-8ace-a94738d9ae28)

Once connected, this session will persist until you close it or change clusters in Infra App.

![](https://2997771214-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ll2YPh7b5O2frfEMtKk%2F-MKCgCcYJVIZ7pcrzEB9%2F-MKCiTkWhuKOL7JbrP_u%2Fterminal.png?alt=media\&token=0679c70d-dfc7-4157-8cc5-0fb11df7da4a)

To close the shell, simply click on the **X** button in the top right of the terminal view.&#x20;

{% hint style="warning" %}

#### Not all containers can open a shell

Not all containers include files required to open shell access. You may receive an error such as `OCI runtime exec failed: exec failed.`&#x20;
{% endhint %}
