How to enter a Docker container shell


Execute an interactive bash shell on the container name or id with docker exec:

docker exec -it <container> bash

Exit the Bash session in the container with Ctrl+D or exit.



Please support this site and join our Discord!