Skip to content
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

Ability to forward a range of ports to container #109215

Closed
peredwardsson opened this issue Oct 23, 2020 · 2 comments
Closed

Ability to forward a range of ports to container #109215

peredwardsson opened this issue Oct 23, 2020 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@peredwardsson
Copy link

peredwardsson commented Oct 23, 2020

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.

@chrmarti
Copy link
Contributor

/duplicate microsoft/vscode-remote-release#3898

@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@chrmarti @peredwardsson @alexr00 and others