-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add config options that allow container DNS to point to localhost #3210
Comments
buildkit/executor/oci/resolvconf.go Lines 96 to 99 in b6de3ca
|
Hi @tonistiigi, can I try to work on this issue? |
@ch33hau Sure |
Hi @tonistiigi, Now I see how it works and is able to reproduce it. But I have a few questions before I can proceed. Am I right that the new config option should be available on And what should be the option name? I am thinking |
We might not even require new config option. Just when https://github.com/moby/buildkit/blob/master/cmd/buildkitd/config/config.go#L53 is host the DNS from localhost should work as well. |
Hi @tonistiigi , I have created a draft PR #3244 with some questions there. Could you please take a look and see if I am on the right track? Thanks a lot! |
For reference since that wasn't a permalink and line has shifted since:
|
Currently, the localhost nameservers are removed and replaced with default nameservers if needed because it is assumed that internal containers can't access localhost nameservers anyway. But this may not be true if deployment reuses host networking for internal containers by default(that is fine if the whole daemon is already inside a container sandbox). We could add a config option to control this behavior.
ref docker/buildx#1347
The text was updated successfully, but these errors were encountered: