Docker, how to remote ssh from command line host to a docker container? Docker, how to remote ssh from command line host to a docker container? docker docker

Docker, how to remote ssh from command line host to a docker container?


Check first if docker exec would not be enough in your case: piperwork was done before docker exec was implemented:

docker exec --it <running_container> bash

That way, no need to install an openssh server.
No need for ssh. No need for port 22.

You just attach a bash session (shell session) to a running container.