run docker in a server from ssh command code example Example: how to connect to docker via ssh sudo docker exec –it nginx-test /bin/bash