docker command with ssh code example
Example 1: ssh into docker container
docker exec -it <container name> /bin/bash
Example 2: ssh into docker container
docker exec --user root -it <container name> /bin/bash
docker exec <container name> bash -c printenv