Reputation: 538
I am running a docker container within an EC2 instance, How to ssh into the docker container directly without having to login to the container host i.e the EC2 instance here everytime?
Upvotes: 0
Views: 856
Reputation: 26
There an example of setting up SSH service on the docker documentation.
https://docs.docker.com/examples/running_ssh_service/
Once you have the IP of the host and the port mapped to port 22 of the container, you should be able to ssh
Upvotes: 1