Ability to forward a range of ports to container #3898
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Milestone
Originally from @peredwardsson here: microsoft/vscode-docker#2433
Also related: #1386, especially this comment
Issue Type: Feature Request
I'm working with robotics using the ROS ecosystem. In it, you can create services that act as functions that can be called to by other parts of the system. The services are assigned a predetermined IP and a random available port somewhere above 30000. This makes developing in a container frustrating, since I have to manually forward the port of the day into the container. EXPOSE-ing the port in the Dockerfile doesn't help, nor does using "runArgs": ["--expose=30000-65535"] in the devcontainer.json.
I would like to be able to add such a range of ports to the forwardPorts field of devcontainer.json, such that I could use
"forwardPorts": [30000-65535]
or
"forwardPorts": [30000:]
(for "30000 onward")or maybe even
"forwardPorts": [*]
(for "all ports")To the best of my abilities, this doesn't seem doable at the moment. Happy to answer questions should they pop up.
VS Code version: Code 1.50.1 (d2e414d9e4239a252d1ab117bd7067f125afd80a, 2020-10-13T14:44:48.716Z)
OS version: Linux x64 5.4.0-51-generic snap
The text was updated successfully, but these errors were encountered: