-
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
Buildkit does not configure DNS correctly inside container #1004
Comments
Docker version? |
Any custom dns config? |
Not that I know of. |
On Ubuntu Bionic |
Looking at
|
so this might be related to moby/libnetwork#1654!? In the container it prints:
which seems to miss the local and company DNS Servers. |
@abergmeier Just so that everything is clear, can you confirm that you do not have connectivity to 8.8.8.8 nameserver from this machine. In the output you posted about "In the container it prints:", is this from |
That. |
Apologies @abergmeier but we're trying to zero in this issue and I'm a bit confused right now.
Thanks! |
There you go:
which seems pretty wrong, especially since our network does not route ipv6!
|
Sadly I cannot seem to override |
searching for that error, I came to this page https://www.linode.com/community/questions/17384/error-server-returned-error-nxdomain-mitigating-potential-dns-violation-dve-2018 which indicates this may be a bug in systemd resolvd (just from a quick read) |
This is probably one factor. On the other hand, Buildkit IMO definitely has a bug where it handles resolv.conf different than legacy Docker (with the latter working fine). |
@abergmeier Thanks, can you also provide the output for |
|
@abergmeier would you mind trying a dockerd binary I built from moby/moby#39295 ? Here's a link: https://drive.google.com/file/d/15hJWKtlEUpoqYi7uKsaO20qqtEREZ768/view?usp=sharing |
Seems to fix the problem 🎉
|
Will the issue be backported to 18.06? |
18.06 is EOL, so it won't be backported to that version |
Sorry, I meant 18.09 not 18.06 |
same issue with rootless dind |
For a project, I enabled
DOCKER_BUILDKIT="1"
.When building, I get
wget: bad address 'my.company.com'
.The offending line is:
I am not really sure, why this does not work. Other lines like
apk add --no-cache git
work fine in contrast.When experimenting, I get a similar error with:
And this works fine both on the host and when not using Buildkit.
The text was updated successfully, but these errors were encountered: