docker exec -it r bash -l code example Example: docker -it exec bash docker exec -i -t 0f4fe0b1f413 bash