牧场主:找不到牧场代理容器

时间:2017-07-20 10:04:55

标签: docker 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 

任何想法?

1 个答案:

答案 0 :(得分:0)

  1. 您应该确保新主机具有rancher/agent:v1.2.5
  2. 的Docker镜像

    使用以下命令:

    # sudo docker images|grep rancher/agent
    rancher/agent  v1.2.2  6777bc8a1147  3 months ago  233.7 MB
    

    如果主持人没有泊坞窗图片,请使用sudo docker pull rancher/agent:v1.2.5

    获取
    1. 然后检查rancher agent
    2. 的容器日志

      使用以下命令:

      # 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.ymlrancher-compose.yml的文件,确保您获得正确的泊坞窗图片,包含正确的图像版本