Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forwarding ports automatically when using devcontainers #400

Open
SamStaijen opened this issue Dec 28, 2024 · 0 comments
Open

forwarding ports automatically when using devcontainers #400

SamStaijen opened this issue Dec 28, 2024 · 0 comments
Assignees
Labels

Comments

@SamStaijen
Copy link
Contributor

Issue

When using newer versions of docker (or devcontainers, I updated both at the same time), devcontainers do not properly forward the internal ports. The tunnel appears to exist on the host, and in the docker shell you can curl a webpage, but the connection is broken or something.

Fix

add explicit host url to the dev and preview commands, so the url as well as the port get auto recognized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant