Use the unbound dns server
docker filters out the localhost in /etc/resolv.conf by design and will use the Google DNS nameservers as fallback. https://docs.docker.com/engine/userguide/networking/configure-dns/
This commit is contained in:
@@ -103,7 +103,7 @@ After=network.target docker.socket
|
||||
Requires=docker.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/docker daemon -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs
|
||||
ExecStart=/usr/bin/docker daemon -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --dns 127.0.0.1
|
||||
MountFlags=slave
|
||||
LimitNOFILE=1048576
|
||||
LimitNPROC=1048576
|
||||
|
||||
Reference in New Issue
Block a user