rancher/server:latest 增加主机失败

测试环境 Docker version 17.06.2-ce, build cec0b7 ubuntu Zesty 17.04 (LTS) rancher/server:latest 1.6.13 sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:latest 增加主机失败,界面不显示已加主机,代理日志如下   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 INFO: Starting agent for 7F3868BE503D7D12AB6D INFO: Access Key: 7F3868BE503D7D12AB6D INFO: Config URL: http://192.168.228.60:8080/v1 INFO: Storage URL: http://192.168.228.60:8080/v1 INFO: API URL: http://192.168.228.60:8080/v1 INFO: IP: 192.168.228.61 INFO: Port: INFO: Required Image: rancher/agent:v1.2.9 INFO: Current Image: rancher/agent:v1.2.9 INFO: Using image rancher/agent:v1.2.9 Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. INFO: Downloading agent http://192.168.228.60:8080/v1/configcontent/configscripts INFO: Updating configscripts INFO: Downloading http://192.168.228.60:8080/v1//configcontent//configscripts current= INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319 INFO: Updating pyagent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//pyagent current= INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67/apply.sh INFO: Updating host-api INFO: Downloading http://192.168.228.60:8080/v1//configcontent//host-api current=1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Already up to date INFO: Sending host-api applied 1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Updating python-agent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//python-agent current=1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Already up to date INFO: Sending python-agent applied 1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67 INFO: Starting agent /var/lib/cattle/pyagent/apply.sh 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 INFO: Starting agent for 7F3868BE503D7D12AB6D INFO: Access Key: 7F3868BE503D7D12AB6D INFO: Config URL: http://192.168.228.60:8080/v1 INFO: Storage URL: http://192.168.228.60:8080/v1 INFO: API URL: http://192.168.228.60:8080/v1 INFO: IP: 192.168.228.61 INFO: Port: INFO: Required Image: rancher/agent:v1.2.9 INFO: Current Image: rancher/agent:v1.2.9 INFO: Using image rancher/agent:v1.2.9 Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. INFO: Downloading agent http://192.168.228.60:8080/v1/configcontent/configscripts INFO: Updating configscripts INFO: Downloading http://192.168.228.60:8080/v1//configcontent//configscripts current= INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319 INFO: Updating pyagent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//pyagent current= INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67/apply.sh INFO: Updating host-api INFO: Downloading http://192.168.228.60:8080/v1//configcontent//host-api current=1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Already up to date INFO: Sending host-api applied 1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Updating python-agent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//python-agent current=1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Already up to date INFO: Sending python-agent applied 1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67 INFO: Starting agent /var/lib/cattle/pyagent/apply.sh 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 INFO: Starting agent for 7F3868BE503D7D12AB6D INFO: Access Key: 7F3868BE503D7D12AB6D INFO: Config URL: http://192.168.228.60:8080/v1 INFO: Storage URL: http://192.168.228.60:8080/v1 INFO: API URL: http://192.168.228.60:8080/v1 INFO: IP: 192.168.228.61 INFO: Port: INFO: Required Image: rancher/agent:v1.2.9 INFO: Current Image: rancher/agent:v1.2.9 INFO: Using image rancher/agent:v1.2.9 Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. INFO: Downloading agent http://192.168.228.60:8080/v1/configcontent/configscripts INFO: Updating configscripts INFO: Downloading http://192.168.228.60:8080/v1//configcontent//configscripts current= INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319 INFO: Updating pyagent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//pyagent current= INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67/apply.sh INFO: Updating host-api INFO: Downloading http://192.168.228.60:8080/v1//configcontent//host-api current=1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Already up to date INFO: Sending host-api applied 1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf INFO: Updating python-agent INFO: Downloading http://192.168.228.60:8080/v1//configcontent//python-agent current=1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Already up to date INFO: Sending python-agent applied 1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67 INFO: Starting agent /var/lib/cattle/pyagent/apply.sh 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  
已邀请:
如果可以的话,保留一下你的环境。

王伟军 - 分享技术,分享快乐

1、Docker-ce版本太新了,rancher/server:v1.6.14 中的K8S 1.8版还不支持17.06,最高到17.03.2
2、操作系统建议采用Ubuntu 16.04.3,(ubuntu 17.04版本好像不是长期支持版本LTS吧?)
3、命令中不要使用latest标签,建议指定版本rancher/server:v1.6.14

相关支持信息:
https://github.com/rancher/rancher/releases/tag/v1.6.14  
https://rancher.com/docs/rancher/v1.6/en/hosts/#supported-docker-versions  

[attach]10[/attach]

[attach]11[/attach]
 

要回复问题请先登录注册