3 ms·
The documentation clearly states that ports are published. You just didn't follow up on it. Publishing is a docker term different from exposing. There is inform
by selfmodruntime 4y ago
The documentation clearly states that ports are published. You just didn't follow up on it. Publishing is a docker term different from exposing. There is information on the page about exposing a port without publishing it. Under `long syntax` there is the following information: "published: the publicly exposed port" [0]. How much more clear than "publicly exposed" can you get?
What is a published port? Again, look in the documentation, it's clearly states there [1].
You need to learn to read the documentation of potentially dangerous tools fully. If you don't, you're in for a world of hurt. The outside world is clearly just that.
[0]: https://docs.docker.com/compose/compose-file/compose-file-v3/#ports https://docs.docker.com/compose/compose-file/compose-file-v3...
[1]: https://docs.docker.com/config/containers/container-networking/#published-ports https://docs.docker.com/config/containers/container-networki...