关于docker启动neo4j报错原因:ServiceUnavailable: WebSocket connection failure.

今天docker创建neo4j容器时,报错:ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure.
我之前的代码是

//启动neo4j
docker run --name neo4j7687 -d -p 7687:7474 -v D:/docker/neo4j/data:/data -v D:/docker/neo4j/conf:/conf -v D:/docker/neo4j/logs:/logs neo4j:latest

一直报错。。
后来改成

//启动neo4j
docker run --name neo4j7687 -d -p 7474:7474 -p 7687:7687 -v D:/docker/neo4j/data:/data -v D:/docker/neo4j/conf:/conf -v D:/docker/neo4j/logs:/logs neo4j:latest

然后访问 http://localhost:7474/browser/,就正常了

你可能感兴趣的:(docker,neo4j,docker,websocket,容器)