feat: support dev container networking without host mode (#9122)

This commit is contained in:
llamantino
2025-06-14 14:38:18 +02:00
committed by GitHub
parent 90ae4bda0d
commit 47b0dc548e
2 changed files with 5 additions and 2 deletions

View File

@@ -12,5 +12,8 @@
"ghcr.io/devcontainers/features/node:1": {},
},
"postCreateCommand": ".devcontainer/setup.sh",
"runArgs": ["--network=host"],
"runArgs": ["--add-host=host.docker.internal:host-gateway"],
"containerEnv": {
"DOCKER_HOST_ADDR": "host.docker.internal"
},
}