A way to enumerate/inspect port forwarding from within the dev container. #10658
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
I'd like a method to find out what the host-side of port forwarding looks like, from within the container. Even a JSON dump of
[host_side_port,remote_side_host:remote_side_port]
would be pretty great. As far as I can tell, short of developing an extension from scratch, there's no way to do it, at least short of exposing the docker socket to the inside of the container (awkward, as I'm already running docker-inside-docker).The use case is as follows:
Perhaps I want to be able to run several instances of the container in parallel, or to not worry that the user's host will happen to have something on the same port.
I generally have a method to programmatically alter the host:port part of the absolute links, but for that to work, I need to know what the port will be on the outside.
The text was updated successfully, but these errors were encountered: