Dev Containers with VS Code Remote on Windows do not support IPv6 loopback #10769
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Dev Containers do not work out of box on Windows since Docker 26.
When Docusaurus is started via
start
orserve
then the dev server will bind to an IPv6 loopback by default when listening tolocalhost
.VS Code remote does not support forwarding IPv6
Reproducible demo
No response
Steps to reproduce
docusaurus start
ordocusaurus serve
Expected behavior
The dev container works out of box with port forwarding
Actual behavior
The internal webpack dev server is binding only to an IPv6 loopback address.
This is due to a change in Docker Desktop introduced in v26 moby/moby#47062
Other projects have also been affected by this e.g. vitejs/vite#16522
An issue in VS Code remote has been open for some time for a resolution microsoft/vscode-remote-release#7029
Current workarounds in ViteJS include recommendations to alter Devcontianer to disable IPv6 or to manually set the address of the dev server to a V4 address (ie
127.0.0.1
)Your environment
N/A
(although present on okd-project/okd-web and this repo!)N/A
Self-service
The text was updated successfully, but these errors were encountered: