top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Docker: How I can run multiple Dockerized web server containers listening on port 80 and mapped to same port at host?

+1 vote
234 views

Is it possible multiple docker containers each one running web server and listening on the same port, mapped to the same host machine port ? One possible solution to multiple IPs at the host machine and the port exposed by each container is mapped to different ip and standard port 80. This solution would not be feasible in case number of containers increases in the same host and a new IP need to be assigned at host machine for each container.

posted Aug 6, 2017 by Vikram Singh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

I have one host machine and want to run multiple docker containers and each container I want to run different web servers.
How I can achieve this ? Sharing the steps would be good enough for me to proceed. Thanks in advance.

0 votes

What should be the approach to create two containers in such way one container writes in shared resource and another container then consumes the content ? I want to achieve the same thing as we all did for producer consumer problem using the inter process communication.

+1 vote

There are multiple cases:
1. A number of containers have been launched in the same host. how these container communicate to each other
2. Out of "x" numbers of containers in the same host, I want to enable communication between two specific containers. How I can achieve this ?
3. Containers have been launched into different hosts machine and I want to enable communication between these containers. What are the options available ?

...