Access a container's console
From the menu select Containers, select the container then select Console.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3335897979-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUeb1lPrWdn7TlqnXoAAC%252Fuploads%252FpyNrEtEXYYHGYf0uDbMo%252F2.15-docker_containers_container_console.gif%3Falt%3Dmedia%26token%3D03c619b0-0deb-49a7-9ec1-9fcc6adcd513&width=768&dpr=4&quality=100&sign=27725fb5&sv=1)
Select the command and the user you want to give access to, then click Connect.
For Alpine Linux containers, you must select the/bin/ash
command.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3335897979-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUeb1lPrWdn7TlqnXoAAC%252Fuploads%252Fa0zTQq04rprmFGUX4iVz%252F2.15-docker_containers_container_console_execute.png%3Falt%3Dmedia%26token%3Df8120f3a-6cd9-4c30-a384-ba7742c7b66a&width=768&dpr=4&quality=100&sign=aece3f94&sv=1)
If you need to define a command other than those provided, toggle the Use custom command option on. Once connected, you can run commands in the console the same as any other Linux system.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3335897979-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUeb1lPrWdn7TlqnXoAAC%252Fuploads%252FB6vJVjD0eKw05vrAVRhQ%252F2.15-docker_containers_container_console_connect.png%3Falt%3Dmedia%26token%3Dd9cd9146-bf3b-428e-8222-942070f51908&width=768&dpr=4&quality=100&sign=a5c1c04e&sv=1)
Last updated