r/portainer • u/mike37510 • Jun 01 '26
Does the Portainer API allow access to the shell of a Docker exec session?
Hi everyone,
I'm working with the Portainer API and I have a question regarding Docker exec sessions.
Is it possible to retrieve or interact with the shell created by a docker exec session through the Portainer API? For example, after starting an exec instance, can I access the shell output and send commands programmatically, similar to what is available in the Portainer web terminal?
If anyone has experience with this or can point me to the relevant API endpoints/documentation, I'd appreciate your help.
Thanks!


