build(devcontainer): 添加 host.docker.internal 作为主机网关
This commit is contained in:
@@ -26,7 +26,8 @@
|
|||||||
// ".devcontainer/.env",
|
// ".devcontainer/.env",
|
||||||
// -----
|
// -----
|
||||||
"--cap-add=NET_ADMIN",
|
"--cap-add=NET_ADMIN",
|
||||||
"--cap-add=NET_RAW"
|
"--cap-add=NET_RAW",
|
||||||
|
"--add-host=host.docker.internal:host-gateway"
|
||||||
],
|
],
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|||||||
Reference in New Issue
Block a user