Is your feature request related to a problem? Please describe.
Sometimes desiring isolation makes us prefer not mapping ports to the container host.
Currently, when I right-click a container in the VS Code ContainerTools (ms-azuretools.vscode-containers ver 2.1.0) and select "Open in Browser", a notification appears saying ''No valid ports are available'. The container runs a website without any port mappings.
Describe the solution you'd like
I'd like the extension to check sensible defaults before complaining that no valid ports are available. Specifically:
Is the container listening on port 443?
Yes = point the browser to HTTPS://<container's IP>
No =
Is the container listening on port 80?
Yes = point the browser to HTTP://<container's IP>
No = Now you can complain 'No valid ports are available'.
Describe alternatives you've considered
This is what I do now: bookmark the site in my browser so I can manually launch my browser and manually select the bookmark.
Alternatively, Feature #148, prompting for a port and remembering it for that container would also suffice nicely.
Thank you for considering this feature request!
Is your feature request related to a problem? Please describe.
Sometimes desiring isolation makes us prefer not mapping ports to the container host.
Currently, when I right-click a container in the VS Code ContainerTools (ms-azuretools.vscode-containers ver 2.1.0) and select "Open in Browser", a notification appears saying ''No valid ports are available'. The container runs a website without any port mappings.
Describe the solution you'd like
I'd like the extension to check sensible defaults before complaining that no valid ports are available. Specifically:
Is the container listening on port 443?
Yes = point the browser to HTTPS://<container's IP>
No =
Is the container listening on port 80?
Yes = point the browser to HTTP://<container's IP>
No = Now you can complain 'No valid ports are available'.
Describe alternatives you've considered
This is what I do now: bookmark the site in my browser so I can manually launch my browser and manually select the bookmark.
Alternatively, Feature #148, prompting for a port and remembering it for that container would also suffice nicely.
Thank you for considering this feature request!