incubator-hugegraph-toolchain
incubator-hugegraph-toolchain copied to clipboard
[Bug] hubble can't use localhost/0.0.0.0 in docker env
Bug Type (问题类型)
dashboard render (前端渲染问题)
Before submit
- [X] I had searched in the issues and found no similar issues.
Environment (环境信息)
- Server Version: v1.0.0:latest [Docker]
- Hubble Version: v1.6.0:latest [Docker]
- Data Size: 2 vertices, 1 edges
Expected & Actual behavior (期望与实际表现)
hubble shows error
服务 localhost:8080 不可用
when I
- use
docker run -itd --name=graph -p 8080:8080 hugegraph/hugegraph
to run thehugegraph
server. - use
docker run -itd --name=fe -p 8088:8088 hugegraph/hubble
to run thehubble
frontend - In
hubble
click '创建图' - input localhost as host address.
- click create
By the way, is '创建图' in this case should be called as '连接图' ?
Since I need to use HTTP request to create graph (with backend setting... in request body) first.
Then I can connect this graph in hubble
(frontend).
can be fixed by using local IP address like docker run -itd --name=graph -p 192.168.1.204:8080:8080/tcp
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The backend of hubble tried to connect to the localhost:8080, but the backend was in the docker container and the localhost was the container.
If you want to use localhost directly, you can use sudo docker run -itd --name graph --network host hugegraph/hugegraph
and sudo docker run -itd --name fe --network host hugegraph/hubble
.
With host mode, the container will share the network with the host machine.
The backend of hubble tried to connect to the localhost:8080, but the backend was in the docker container and the localhost was the container. If you want to use localhost directly, you can use
sudo docker run -itd --name graph --network host hugegraph/hugegraph
andsudo docker run -itd --name fe --network host hugegraph/hubble
. With host mode, the container will share the network with the host machine.
Thanks.