Open kartikjoshi07 opened 8 years ago
My project is designed for single node, but it can be changed to multiple hosts:
Thanks Kai. But the problem with this is, i cant ssh from hduser of a container in host1 to hduser of a container in host2, where hduser is a user created inside a container and the containers are set as --net=host. As container and host are sharing the IP, it cannot differentiate whether the user we are trying to ssh belongs to host or a container.
Even we can't ssh from one container to another, as the host and the container are sharing the ip.
Sorry, I didn't expect this problem.
This problem from stackoverflow maybe helpful for you:
SSH into a docker container from another container on a different host
You could use the new swarm features build into docker 1.12-rc1 "Multi-host networking: You can specify an overlay network for your services. The swarm manager automatically assigns addresses to the containers on the overlay network when it initializes or updates the application." https://docs.docker.com/engine/swarm/ Or you could use docker swarm which also allows you to create a software defined network.
This project holds good only for single host. How to use it on multi-host ? i have been trying different implementations provided on web, but nothing is straight forward.