LoginSignup
4
2

More than 5 years have passed since last update.

Rancherでホスト追加しようとしたがagentでエラーが出ていた件

Posted at

環境

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
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2