connect ssh docker code example
Example 1: ssh into docker container
docker exec -it <container name> /bin/bash
Example 2: docker ssh
sudo docker exec –it nginx-test /bin/bash
docker exec -it <container name> /bin/bash
sudo docker exec –it nginx-test /bin/bash