microsoft / microsoft/vscode-remote-release
Dev Containers: Possible bug with "appPort" property
Open
@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:
But when I have "appPort": [8000] they are like this:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.