3 ms·
> The user requested for the port to get published and so docker published it. Yes, which runs counter to how every other application works. If you ask, say, s
by Tijdreiziger 4y ago
> The user requested for the port to get published and so docker published it.
Yes, which runs counter to how every other application works. If you ask, say, sshd to listen on port 22, your firewall will still sit in front of it, unless you explicitly poke a hole in it.
- cpuguy83 4y agoListening on a port and opening a port are different things. `-p` is for opening ports. Docker is not listening on behalf of the application. It is routing traffic to the application.