1. Nice writeup!
    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?

  2. 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 ;-).

Leave a Reply

Your email address will not be published. Required fields are marked *