-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Explorer shows container published ports as "forwarded", which is misleading #1809
Comments
@Chuxel It seems like when a user adds a port to That the |
I agree, we can't make published ports disappear, they are part of the basic functionality of Docker. I'd prefer to leave |
@chrmarti Good point - |
Fixed in the common forwarded view. |
Currently the Remote Explorer is not distinguishing between "published" and "forwarded" ports for a container.
Using "appPort" publishes a port rather than forwarding it. A key difference is that an application needs to listen on all interfaces (0.0.0.0 or "*") rather than localhost for it to be accessbile internally.
The "Forward" command actually does real port forwarding. In this case, "localhost:" is actually forwarded to localhost on the other side. This means that applications could listen on localhost only.
Both of these show up as follows in the UI:
Recently I've seen confusion about this particularly in the case of Python flask applications that listen on localhost by default (while Express.js in node would listen on all interfaces typically).
Short term, we should make sure that this distinction is visible any location where we show ports configured via "appPort".
(We also likely should evaluate whether we should include a "forwardPorts" property that actually does forward ports to alleviate confusion here - this property already exists in the attached config.)
//cc: @chrmarti @alexr00
The text was updated successfully, but these errors were encountered: