Here is the article on Dockerfile:
Introduction to Dockerfile
How does the port mapping from host to docker with -p work underneath?
Would it possible to map the same host port to multiple container in a round-robin or load sharing fashion?
There is another option of container’s IP address being made visible ( not sure how that works either), in which would we need this port mapping?
Routes are added to the firewall that maps the port on the container to the port on the host. Under the hood on Linux this updates the iptables.
To answer the second part of multiple containers, wait for the next article ;-).
Your email address will not be published. Required fields are marked *