How to enter in a Docker container already running with a new TTY

With docker 1.3, there is a new command docker exec. This allows you to enter a running container:

docker exec -it [container-id] bash

Note: this assumes bash is installed on your container. You may run sh or whatever interactive shell is installed on the container.

Leave a Comment