Apr 17, 2017

[HDGEM] How to get bash or ssh into a running docker daemon

$ sudo docker attach 88id #by ID
$ sudo docker attach my_docker_name #by Name

If we use attach we can use only one instance of shell. So if we want open new terminal with new instance of container's shell, we just need run the following:

$ sudo docker exec -i -t 88id /bin/bash #by ID
$ sudo docker exec -i -t docker_name /bin/bash #by Name

Posted By Blogger to HDGEM at 4/17/2017 11:39:00 AM