docker exec -it portainer /bin/sh

Category: Self-Hosting

docker exec -it portainer /bin/sh

Open a shell inside the Portainer container for debugging

Opens a shell inside the Portainer container for low-level debugging. Portainer uses Alpine Linux so /bin/sh is available but bash may not be.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.