ssh into docker image code example
Example 1: how to bash into docker container
docker exec -it nginx /bin/bash
Example 2: docker ssh
sudo docker exec –it nginx-test /bin/bash
Example 3: docker ssh
sudo docker attach Container_Name
docker exec -it nginx /bin/bash
sudo docker exec –it nginx-test /bin/bash
sudo docker attach Container_Name