環境
Ubuntu 18.04
Rancher server v1.6.23
Rancher agent v1.2.11
Agentでdocker run rancher/agent:v1.2.11(パラメータ省略)したあとに出力されていたエラー
$ docker logs <コンテナID>
**** いろいろログ(略) ****
ERROR: DNS Checking loopback IP address 127.0.0.0/8, localhost or ::1 configured as the DNS server on the host file /etc/resolv.conf, can’t accept it
解決方法
sudo nano /etc/docker/daemon.json
/etc/docker/daemon.json
{
"dns": ["8.8.8.8", "8.8.4.4"]
}
sudo systemctl restart docker