Skip to content

Commit ce1a757

Browse files
committed
Devcontainers: use simpler image, disable IPv6
Previous image did not work on Mac ARM machines, so used a simpler one. Also, port forwarding did not work ootb as VSCode's forwarding feature does not support IPv6 (see vitejs/vite#16522). Fix is to disable IPv6 in the container.
1 parent ffa9ef2 commit ce1a757

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.devcontainer/devcontainer.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"image":"mcr.microsoft.com/devcontainers/universal:2",
2+
"image":"mcr.microsoft.com/vscode/devcontainers/javascript-node:22",
33
"customizations": {
44
"vscode": {
55
"extensions": [
66
"fcrespo82.markdown-table-formatter",
77
"vue.volar"
88
]
99
}
10-
}
10+
},
11+
"runArgs": [
12+
// disable IPv6, see https://github.com/vitejs/vite/issues/16522
13+
"--sysctl", "net.ipv6.conf.all.disable_ipv6=1"
14+
]
1115
}

0 commit comments

Comments
 (0)