docker shell without expose port 22 code example Example: docker ssh sudo docker exec –it nginx-test /bin/bash