Suppose that we have two applications running, on two different containers bound to port 80. Is it possible to expose both of these applications on port 80 of the guest machine?
I think the answer might be yes since each container runs in an isolated network namespace so everyone can listen on the same port and they will not conflict (in the simple case of two containers running in the same port, but with the introduction of a guest machine I am in doubt)
CodePudding user response:
Yes, this is perfectly fine, as you write, the containers will have their own network namespace.