Docker 29 · Containers

Open a shell in a running container

Run an interactive shell inside a container. Use bash if the image has it.

docker exec -it web sh

Official Docker 29 documentation

More containers commands

All containers commands · Docker 29 cheatsheet

Was this page helpful?