crypto-com / chain-desktop-wallet

Crypto.com DeFi Desktop Wallet
https://crypto.com/defi-wallet
Other
362 stars 112 forks source link

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

Open Frankramos181422 opened 1 year ago

Frankramos181422 commented 1 year ago

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:

{
  "name": "my-project-devcontainer",
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
  "features": {
    "ghcr.io/devcontainers/features/sshd:1": {
      "version": "latest"
    }
  },
  "forwardPorts": [2222],
  "remoteUser": "vscode"
}

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.

I tried this on Windows 11.

Originally posted by @davidkron in https://github.com/devcontainers/cli/issues/186