Replies: 1 comment
-
Hi 👋 The Here's how you can modify your {
"image": "your-image-name",
"privileged": true,
"runArgs": ["--network", "host"],
"capAdd": ["NET_RAW", "NET_ADMIN"]
} Please note that these options increase the privileges of the container, which can have security implications. Make sure you understand the implications and trust the code running inside the container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anyone have an idea how to connect the devcontainer to the host network?
Running ICMP pig works fine locally
On linux, building a maing.go file and giving it setcap cap_net_raw=+ep also gets it to work but I am looking for a solutution for this on a container eventually..
Network is unreachable from within
tried a bunch of stuff including messing around with the devcontainer.json
e.g. runArgs": [
"--network=host",
]
Beta Was this translation helpful? Give feedback.
All reactions