img icon indicating copy to clipboard operation
img copied to clipboard

Request: Define DNS servers

Open oblique opened this issue 7 years ago • 2 comments

Some distributions have a local DNS service, in this case img sets default DNS servers to 8.8.8.8. I would like to be able to define my own DNS servers. Something similar to --dns, --dns-opt, --dns-search that dockerd has.

oblique avatar Oct 17 '18 09:10 oblique

upstream issue: https://github.com/moby/buildkit/issues/734

AkihiroSuda avatar Nov 22 '18 05:11 AkihiroSuda

Any news on this one ? The linked issue is closed, it's still unclear to me what step I should follow to configure my DNS server manually though ...

My use case is :

I'm using img as part of my build process through a jenkins server. The server itself (and the agents) is running as a Docker image, extending the img provided by this repo. The problem is that docker erase resolv.conf to add a local nameserver. I'm now in the same situation as OP.

Thanks in advance

MYDIH avatar Jun 10 '20 08:06 MYDIH