-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
forwardPorts configuration option not working #186
Comments
|
Port forwarding is currently not implemented in the CLI. Labelling as feature request. |
Is there any information about the intent of adding Port Forwarding to the |
How are you supposed to expose ports, if the option is not supported in devcontainer.json? I have tried looking through the cli tool (most naturally would think it fits in Most simply, I am looking for something equivalent to Something like this feels crucial to support individuals that don’t use vscode, but would rather dev in the container with vim / emacs. |
@michaelperel, to my knowledge, port forwarding is not supported in the CLI via I truly agree that the Devcontainer CLI should support workflows independent of VS Code. I'm additionally developing auto-forwarding, but it will probably be a feature, which needs to be added to an Image. We will see. |
Any progress on this? Would be awesome to get this feature! |
I rebased this and made some minor modifications (simplifications and style etc) and put up a PR: #859
It looks like this was worked on in https://github.com/MunsMan/autoForward but was not completed? GitHub Codespaces does have auto-forwarding, which is nice, not sure if VSCode does as well. But while related, that's a separate feature from supporting plain |
With the recent release (the one with features) I tried experimenting with the devcontainers CLI. But I just can't get the
forwardPorts
feature to work. I created the following minimaldevcontainer.json
file:Maybe I am misunderstanding the
forwardPorts
option, but I would expect that this configuration will forward the port 2222 (this is the default defined by the sshd feature) from the devcontainer to my host. But a simplessh localhost -p 2222
did not work.I tried this on Windows 11.
The text was updated successfully, but these errors were encountered: