amazon-web-servicessshdockercentos6.5

SSH into a docker container from another container on a different host


I have a docker container running on an EC2 host, and another running on another ec2 host. How do I ssh from one to another, without providing any port numbers? I want to do something like ssh root@ip-address-of-container


Solution

  • Open vswitch was the easiest solution! - https://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/