ssh on docker code example
Example 1: docekr enter container
docker exec -it [container-id] bash
Example 2: how to connect to docker via ssh
sudo docker exec –it nginx-test /bin/bash
docker exec -it [container-id] bash
sudo docker exec –it nginx-test /bin/bash