Run a command in a running container.
Section: Containers
Execute command in running container
bash
bash
docker exec -it web shExplanation
A standard way to inspect or debug a live container.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Containers