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
Docker 29 · Containers
Run an interactive shell inside a container. Use bash if the image has it.
docker exec -it web sh
Official Docker 29 documentation
Was this page helpful?