0

I am deploying a number of docker containers as marathons apps. Each container should be able to communicate with everyone else using SSH. How do I set hosts and ssh keys for the deployed containers, so that they can communicate with each other without username and password.

Also, trying to understand scenario, when the new container is added as a result of scaling, so the rest of the cluster should became aware of a new node, and vice versa.

Andrei Varanovich
  • 492
  • 1
  • 5
  • 16
  • Does each container need to have it's own keys or maybe they can share keys withing node they are running on? – janisz Jun 15 '16 at 13:29
  • They can share, but I still can't image in what sequence this has to be arranged. Something like: after deployment pull the SSH key from a known location? – Andrei Varanovich Jun 15 '16 at 18:01

0 Answers0