4 ms·
How is it that you can spawn many containers and have them all bind to `0.0.0.0:80` in your example? Try doing the same with Apache2. Multiple instances listen
by nickstinemates 4y ago
How is it that you can spawn many containers and have them all bind to `0.0.0.0:80` in your example?
Try doing the same with Apache2. Multiple instances listening on Port 80.
This is the difference, and the source of ignorance.
- yjftsjthsd-h 4y agoYou... can't? I mean, you can bind it inside the container, of course, but you can't bind it on the host ("publish"), which seems like the analogous thing to running on the host. Also, AIUI podman manages to not ignore the firewall, so it's not like it's some inherent issue.
- nickstinemates 4y agoYou can. Because each container has its own ip address. Publish IS EXACTLY the creation of the iptables entry to route traffic over the docker0 bridge.