What are the port mapping complexities solved by Flannel?

126 views Asked by At

Suppose, I have 3 Containers running on a single host and we are making a Hadoop cluster, 1 is master and other 2 are slaves(Namenode and datanodes)

And,we need to map ports:

docker run -itd -p 50070:50070 --name master centos:bigdata

docker run -itd -p 50075:50075 -p 50010:50010 --name slave1 centos:bigdata

Now ports 50075,50010,50070 are busy on host, we cannot map them for slave2

And if we do some random mapping like,

docker run -p 123:50075 -p 234:50010 --name slave2 centos:bigdata

Then, containers won't be able to communicate and it won't work.

So, Can flannel solve this problem?

0

There are 0 answers