microsoft / microsoft/vscode-remote-release

Dev Containers: Possible bug with "appPort" property

Open
#9,890 2 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since May 16, 2024.

bug containers doc
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

In devcontainers.json when I have: "appPort": ["8000:8000"] and I build container, ports are like this:
8000string
But when I have "appPort": [8000] they are like this:
8000number
I thought these two settings were doing the same. But actually, bare 8000 number forwards only 127.0.0.1 which won't allow connections from outside of the host machine.

Is it a bug or a feature?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.