本文转自:http://securityer.lofter.com/post/1d0f3ee7_10c465cc

安装rancher agent时出现以下报错

[root@localhost ~]# sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/ent:v1.2.5 http://192.168.160.130:8080/v1/scripts/6A02DFC097998B0A7659:1483142400000:Eja7GMfVIFpz6o3n017UuZoNNUs

INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.160.130:8080/v1

INFO: Attempting to connect to: http://192.168.160.130:8080/v1

ERROR: http://192.168.160.130:8080/v1 is not accessible (Failed to connect to 192.168.160.130 port 8080: No route to host)

ERROR: http://192.168.160.130:8080/v1 is not accessible (Failed to connect to 192.168.160.130 port 8080: No route to host)

......

原因可能是防火墙引起

[root@localhost ~]# firewall-cmd --state

running

[root@localhost ~]# systemctl stop firewalld

再次执行agent安装

[root@localhost ~]# sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.5 http://192.168.160.130:8080/v1/scripts/6A02DFC097998B0A7659:1483142400000:Eja7GMfVIFpz6o3n017UuZoNNUs

INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.160.130:8080/v1

INFO: Attempting to connect to: http://192.168.160.130:8080/v1

INFO: http://192.168.160.130:8080/v1 is accessible

INFO: Inspecting host capabilities

INFO: Boot2Docker: false

INFO: Host writable: true

INFO: Token: xxxxxxxx

INFO: Running registration

INFO: Printing Environment

INFO: ENV: CATTLE_ACCESS_KEY=E916F23240672F13BDB3

INFO: ENV: CATTLE_HOME=/var/lib/cattle

INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken

INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx

INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx

INFO: ENV: CATTLE_URL=http://192.168.160.130:8080/v1

INFO: ENV: DETECTED_CATTLE_AGENT_IP=172.17.0.1

INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.5

INFO: Launched Rancher Agent: f97c2ac8ab0d7862bc2aa694266d2379ef41de06db0e9d7ba3a44b0560758677

OK

最新文章

  1. 设置ubuntu 下git 的用户名和邮箱
  2. ASP跨域调用Webservices方法
  3. MySQL一些常用的时间函数
  4. 工作流学习——Activiti流程实例、任务管理四步曲 (zhuan)
  5. TYVJ P1016 装箱问题
  6. 面试常考的常用数据结构与算法(zz)
  7. AlphaDict 软件公布
  8. CPU使用率和Load Average的关系
  9. [zz]npm安装错误解决方法
  10. 如何使用Add-on SDK开发一个自己的火狐扩展
  11. POJ 3419 Difference Is Beautiful(RMQ+二分 或者 模拟)
  12. 关于phpMyAdmin表数据不能编辑更改的问题
  13. 从一道例题谈Arrays.toString()与其他String的转换方法
  14. orangepi one AP模式配置
  15. SpringMVC中post请求参数注解@requestBody使用问题
  16. jquery append()与html()注意项
  17. [yum] yum加速
  18. BZOJ4445 SCOI2015小凸想跑步(半平面交)
  19. word2vec前世今生
  20. Jena RDF API

热门文章

  1. enumerate的用法
  2. Kotlin基础语法学习
  3. outlook VSTO
  4. LeetCode刷题:第一题 两数之和
  5. 在注册表中查看Windows10系统激活密钥的方法
  6. grep 笔记
  7. day17_雷神_数据库 小全
  8. Javascript高级编程学习笔记(67)—— 事件(11)HTML5事件
  9. MySQL如何使用索引
  10. git添加远程仓库