【发布时间】:2021-03-21 06:30:00
【问题描述】:
我在本地运行 gremlin-client 容器和 gremlin-server 容器在 2 个单独的容器中。我是这样开始的:
docker network create -o com.docker.network.bridge.enable_icc=true hacker
docker run --network hacker -p 8182:8182 tinkerpop/gremlin-server:3.4
docker run --network hacker -it tinkerpop/gremlin-console
当我尝试从客户端连接到远程服务器时:
:remote connect tinkerpop.server conf/remote.yaml
我收到以下错误:
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8182
这是为什么?我尝试共享网络,但仍然无法正常工作。有任何想法吗?端口被转发并匹配 remote.yaml 文件中的内容。
编辑
我通过修改客户端 conf 文件中的主机读取为host.docker.internal 来使其工作
【问题讨论】:
标签: docker gremlin gremlin-server