Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.
./ssh-keygen.sh
docker-compose up -d
ssh -i id_rsa sshuser@localhost -p 2222