mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Loopback IP shouldn't be filtered from resolv.conf in host mode
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
parent
840d82b8da
commit
4e25ffc8d9
1 changed files with 5 additions and 0 deletions
|
@ -869,6 +869,11 @@ func (sb *sandbox) updateDNS(ipv6Enabled bool) error {
|
|||
hashFile = sb.config.resolvConfHashFile
|
||||
)
|
||||
|
||||
// This is for the host mode networking
|
||||
if sb.config.originResolvConfPath != "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(sb.config.dnsList) > 0 || len(sb.config.dnsSearchList) > 0 || len(sb.config.dnsOptionsList) > 0 {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue