There was a time when I could never remember this… but now I’ve typed it so often!

docker exec -it container_name /bin/bash

More details in the Docker CLI Reference