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.