-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Update devcontainer.json #52445
base: main
Are you sure you want to change the base?
Update devcontainer.json #52445
Conversation
.devcontainer/devcontainer.json
Outdated
} | ||
}, | ||
"runArgs": [ | ||
// Allow node process to bind to port numbers below 1024 without root permissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Allow node process to bind to port numbers below 1024 without root permissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, I think JS comments are not valid JSON syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VSCode uses jsonc for its config files, so comments are not invalid in this case.
They also state this feature explicitly in the devcontainer.json spec.
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Adding stalled, as the comment was never addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
My changes are only suggestions, and are not blocking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the changes in this file relevant?
This update includes the addition of "runArgs" to specify Docker run arguments. Specifically, it allows the Node.js process inside the container to bind to port numbers below 1024 without requiring root permissions. This should resolve the issue with "Reopen in Container" in VS Code. Adjustments can be made based on the specific requirements.