-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable IPV6 in ubuntu WSL2 1.0.0 #9211
Comments
Suggestion Fix your setup properly instead. |
I'm using docker-compose to run multiple containers that aim to connect to each other, with the help of docker-host. This doesn't work when there's an IPV6 address assigned, since docker can't handle it. How would you suggest to fix my setup? |
open a issue on https://github.com/qoomon/docker-host IPv6 works fine on docker. |
If software don't work when IPv6 is available on host, then it is just horrible broken. Disabling IPv6 is unacceptable. If software don't work with IPv6 then it needs to be fixed. IPv4 is dead, what we need is ways to remove IPv4 from hosts. |
@peterjuras: One way to disable ipv6 globally would be to add:
In %USERPROFILE%/.wslconfig (you'll need to run wsl.exe --shutdown to restart WSL after making the change). |
Thanks @OneBlue! |
Version
Windows version: 10.0.22621.819
WSL Version
Kernel Version
5.15.74.2
Distro Version
Ubuntu 22.04.1 LTS
Other Software
No response
Repro Steps
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
Expected Behavior
The ubuntu command:
ip addr
should no longer show an IPV6 address for eth0.This breaks my docker desktop setup because containers can't communicate with each other. How can I disable IPV6 addresses for ubuntu in WSL2?
Actual Behavior
It still has a ipv6 address.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: