install ssh on docker container code example
Example 1: how to connect to docker via ssh
sudo docker exec –it nginx-test /bin/bash
Example 2: docker ssh
sudo docker attach Container_Name
sudo docker exec –it nginx-test /bin/bash
sudo docker attach Container_Name