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 minimal `devcontainer.json` file: api-url #1248
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 minimal devcontainer.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 simple ssh localhost -p 2222 did not work.
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.
Originally posted by @davidkron in https://github.com/devcontainers/cli/issues/186