dream-lab / VIoLET

VIoLET: A Large-scale Virtual Environment for Internet of Things
17 stars 7 forks source link

support ssh access to containers #2

Open simmhan opened 6 years ago

sbshrey commented 6 years ago

SSH into a Container How do I SSH into a running container There is a docker exec command that can be used to connect to a container that is already running.

Use docker ps to get the name of the existing container Use the command docker exec -it /bin/bash to get a bash shell in the container Generically, use docker exec -it to execute whatever command you specify in the container.

reference: http://phase2.github.io/devtools/common-tasks/ssh-into-a-container/