Skip to content

Conversation

skemaikin
Copy link

Update devcontainer:

  • add network mode
  • add cpptools extensions

Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

@@ -6,7 +6,8 @@
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
"seccomp=unconfined",
"--network=host"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? exposing devcontainer to the network is dangerous

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The devсontainer is usefull because it helps quickly start developing without worrying about unnecessary configuration. The --network=host helps to avoid setting up common network names for the different containers running on the same computer. I see, this is a "dirty" practice. May be this should be specifically mentioned in a documentation?

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

Successfully merging this pull request may close these issues.

2 participants