docker ssh

C#
sudo docker exec –it nginx-test /bin/bash
Source

Also in C#: