|
|
|
|
|
by Badumtss8
1213 days ago
|
|
nginx listens on port 80.
Accessible from machine.
Inaccessible from outside unless allowed by ufw. docker listens on port X.
Accessible on machine.
Also accessible from outside regardless of ufw. No amount of time and experience will make you think that configuring a software to listen on a port will automagically poke a hole in the firewall. |
|
It starts with the simple truth: `docker` doesn't `listen` on any port.
Or maybe a simple question: How can I run `docker run -p 8080 nginx` over and over without port conflict?
Or - lets expand scope even more. How is docker supposed to know about your choice of firewall? What about upstream firewalls? What about multiple versions of firewalls on a host (ufw vs. fern vs.)?
Can go on and on..