Docker部署出现问题

  • nebula 版本:2.5.0
  • 部署方式: 单机
  • 安装方式:Docker
  • 是否为线上版本:N
  • 硬件信息
    • 磁盘SSD
    • CPU、内存信息 16g
      提示错误信息
      Could not get IPs: lookup graphd on 192.168.65.5:53: dial udp 192.168.65.5:53: connect: network is unreachable
      2022/09/14 12:42:12 Fail to initialize the connection pool, host: graphd, port: 9669, failed to find IP, error: lookup graphd on 192.168.65.5:53: dial udp 192.168.65.5:53: connect: network is unreachable
      panic: Fail to initialize the connection pool, host: graphd, port: 9669, failed to find IP, error: lookup graphd on 192.168.65.5:53: dial udp 192.168.65.5:53: connect: network is unreachable

运行docker-compose ps后
nebula-docker-compose-250-graphd-1 “/usr/local/nebula/b…” graphd running (healthy) 0.0.0.0:9669->9669/tcp, 0.0.0.0:53964->19669/tcp, 0.0.0.0:53965->19670/tcp
nebula-docker-compose-250-graphd1-1 “/usr/local/nebula/b…” graphd1 running (healthy) 0.0.0.0:53966->9669/tcp, 0.0.0.0:53967->19669/tcp, 0.0.0.0:53968->19670/tcp
nebula-docker-compose-250-graphd2-1 “/usr/local/nebula/b…” graphd2 running (healthy) 0.0.0.0:53961->9669/tcp, 0.0.0.0:53962->19669/tcp, 0.0.0.0:53963->19670/tcp
nebula-docker-compose-250-metad0-1 “/usr/local/nebula/b…” metad0 running (healthy) 9560/tcp, 0.0.0.0:53947->9559/tcp, 0.0.0.0:53945->19559/tcp, 0.0.0.0:53946->19560/tcp
nebula-docker-compose-250-metad1-1 “/usr/local/nebula/b…” metad1 running (healthy) 9560/tcp, 0.0.0.0:53942->9559/tcp, 0.0.0.0:53943->19559/tcp, 0.0.0.0:53944->19560/tcp
nebula-docker-compose-250-metad2-1 “/usr/local/nebula/b…” metad2 running (healthy) 9560/tcp, 0.0.0.0:53950->9559/tcp, 0.0.0.0:53948->19559/tcp, 0.0.0.0:53949->19560/tcp
nebula-docker-compose-250-storaged0-1 “/usr/local/nebula/b…” storaged0 running (healthy) 9777-9778/tcp, 9780/tcp, 0.0.0.0:53957->9779/tcp, 0.0.0.0:53955->19779/tcp, 0.0.0.0:53956->19780/tcp
nebula-docker-compose-250-storaged1-1 “/usr/local/nebula/b…” storaged1 running (healthy) 9777-9778/tcp, 9780/tcp, 0.0.0.0:53952->9779/tcp, 0.0.0.0:53953->19779/tcp, 0.0.0.0:53954->19780/tcp
nebula-docker-compose-250-storaged2-1 “/usr/local/nebula/b…” storaged2 running (healthy) 9777-9778/tcp, 9780/tcp, 0.0.0.0:53958->9779/tcp, 0.0.0.0:53959->19779/tcp, 0.0.0.0:53960->19780/tcp
全都是healthy

这个报错是哪里?应该是没法解析 graphd 这个 host,你是在用 容器网络之外的 console 连接 graphd:9669 么?如果是的话,改成本地 ip:9669,这个 graphd 只在容器网络 nebula-net 内部可以被解析

1 个赞

BTW,如果是新部署,是不是可以考虑用最新的3.2.0呢

1 个赞

之前有使用过,第一次是正常的,后来console不断重启我就换成了3.0.1

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。