我试图使用rancher UI创建一个新的主机(DigitalOccean),一切都很好,但是最后我得到了这个错误:
"Failed to find rancher-agent container"
日志:
time="2017-07-20T09:55:57Z" level=info msg="stdout: Running pre-create checks..." resourceId: =1ph86 service=gms
time="2017-07-20T09:55:58Z" level=info msg="stdout: Creating machine..." resourceId: =1ph86 service=gms
time="2017-07-20T09:55:58Z" level=info msg="stdout: (oo) Creating SSH key..." resourceId: =1ph86 service=gms
time="2017-07-20T09:55:59Z" level=info msg="stdout: (oo) Creating Digital Ocean droplet..." resourceId: =1ph86 service=gms
time="2017-07-20T09:56:00Z" level=info msg="stdout: (oo) Waiting for IP address to be assigned to the Droplet..." resourceId: =1ph86 service=gms
...
time="2017-07-20T09:57:31Z" level=info msg="pulling rancher/agent:v1.2.5 image." service=gms
time="2017-07-20T09:57:43Z" level=info msg="Container created for machine" containerId=5bef89f75de6fc256f0adbe1cc9c7138292aaa4bd7d8446546d208823cd8b22f machineId=1ph86 resourceId=1ph86 service=gms
time="2017-07-20T09:58:46Z" level=error msg="Failed to find rancher-agent container" machineId=1ph86 resourceId=1ph86 service=gms
time="2017-07-20T09:58:46Z" level=error msg="Error processing event" err="Failed to find rancher-agent container" eventId=08649e06-ddcd-445d-b120-91c0e7498835 eventName="physicalhost.bootstrap;handler=goMachineService" resourceId=1ph86
任何的想法 ?
最佳答案
rancher/agent:v1.2.5
的Docker镜像。 通过使用以下命令:
# sudo docker images|grep rancher/agent
rancher/agent v1.2.2 6777bc8a1147 3 months ago 233.7 MB
如果主机没有docker镜像,请使用
sudo docker pull rancher/agent:v1.2.5
获取它rancher agent
的容器日志。 通过使用以下命令:
# sudo docker ps -a |grep rancher/agent
1c03d064165c rancher/agent:v1.2.2 "/run.sh run" 5 days ago Up 5 days rancher-agent
# sudo docker logs 1c03d064165c
Exited\Created\Dead
,请仔细阅读其日志并通过询问Google \ Github来找到该BUG的解决方案; docker-compose.yml
和rancher-compose.yml
的文件,确保您获得正确的docker镜像正确的,包括正确的镜像版本的。 关于docker - Rancher :找不到 Rancher 代理容器,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45211579/