Access a container's console
From the menu select Containers, select the container then select Console.
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.
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%2F3124200557-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FSnGaCQxx2ODexfYYKEez%252Fuploads%252FLw5xz05P9WYqqk6MinFk%252F2.20-containers-console-connected.png%3Falt%3Dmedia%26token%3Dc366e626-f173-4e3f-9f64-69ab2f03b40c&width=768&dpr=4&quality=100&sign=bfdd178&sv=1)
To disconnect from the console session, click the Disconnect button.
Last updated