mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
This reverts commit 18f4f775ed.
Because buildkit doesn't run an internal resolver, and it bases its
/etc/resolv.conf on the host's ... when buildkit is run in a container
that has 'nameserver 127.0.0.11', its build containers will use Google's
DNS servers as a fallback (unless the build container uses host
networking).
Before, when the 127.0.0.11 resolver was not used for the default network,
the buildkit container would have inherited a site-local nameserver. So,
the build containers it created would also have inherited that DNS
server - and they'd be able to resolve site-local hostnames.
By replacing the site-local nameserver with Google's, we broke access
to local DNS and its hostnames.
Signed-off-by: Rob Murray <rob.murray@docker.com>
20 lines
381 B
Go
20 lines
381 B
Go
//go:build !linux && !freebsd && !windows
|
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/docker/docker/pkg/sysinfo"
|
|
)
|
|
|
|
func checkSystem() error {
|
|
return errors.New("the Docker daemon is not supported on this platform")
|
|
}
|
|
|
|
func setupResolvConf(_ *interface{}) {}
|
|
|
|
func getSysInfo(_ *Daemon) *sysinfo.SysInfo {
|
|
return sysinfo.New()
|
|
}
|