To connect to a running Docker container and get the bash shell inside it, you can use the docker exec command. Here's the basic usage:

docker exec -it <container-name> /bin/bash