-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Errors in container without IPv6 #1546
Comments
Hi, You can use |
thanks a lot for this workaround. But i think it still should be handled better by default. If you have hosts without IPv6 stack, it should not try to connect over IPv6 at all. As you can see from error message: " cannot assign requested address" IPv6 is correctly disabled - kernel doesn't allow to bind IPv6 address for outbound connection. |
This is a questionable method in the first place. Plenty of different applications will break when you fully disable the IPv6 stack. |
any example of application which doesn't work with disabled IPv6 stack please? |
How are you disabling the networking in the container? Do you have any ideas on detecting disabled IPv6 from Go? |
An example is exim4 on Debian12. When the IPv6 stack is disabled it won't start. |
it's option when creating network in docker, for example:
What about this? imp1sh: |
Why do you disable IPv6 in the first place? |
i didn't, it's disabled in docker by default :)
|
Ah nice thanks, I didn't find that one when I looked! @imp1sh I agree disabling IPv6 is not ideal from the start, but unfortunately it's still common so I think if we can easily detect it we might as well. |
I can confirm, with this patch inside container without IPv6, it disables IPv6: ``
|
Hi,
I have disabled IPv6 inside container and logs is full of error like this:
It looks like dns resolver is trying to connect to Google DoH over IPv6, which obviously fails. In IPv6 disabled container it should not try to connect to upstream DNS over IPv6 at all.
Same problem is with downloading adlists:
Thanks.
The text was updated successfully, but these errors were encountered: