Nitin AB
Nitin AB

Reputation: 538

How to setup SSH access to a docker container?

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

Answers (1)

Ravi
Ravi

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

Related Questions