gpt4 book ai didi

docker - Rancher : Failed to find rancher-agent container

转载 作者:行者123 更新时间:2023-12-02 01:01:05 25 4
gpt4 key购买 nike

我尝试使用 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. 您应该确保新主机具有 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代理的容器日志。
  • 使用以下命令:

    # 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 文件,确保您获得 < strong>正确的 docker 镜像,包括正确的镜像版本

    关于docker - Rancher : Failed to find rancher-agent container,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45211579/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com